Search in sources :

Example 6 with ApplicationInsightsComponent

use of com.microsoft.azure.management.applicationinsights.v2015_05_01.ApplicationInsightsComponent in project azure-tools-for-java by Microsoft.

the class ApplicationInsightsResourceRegistry method prepareAppResListFromRes.

/**
 * Prepare list of ApplicationInsightsResource using list of Resource.
 * @param resourceList
 * @param sub
 * @return
 */
public static List<ApplicationInsightsResource> prepareAppResListFromRes(List<ApplicationInsightsComponent> resourceList, Subscription sub) {
    List<ApplicationInsightsResource> list = new ArrayList<ApplicationInsightsResource>();
    for (ApplicationInsightsComponent resource : resourceList) {
        ApplicationInsightsResource resourceToAdd = new ApplicationInsightsResource(resource, sub, true);
        list.add(resourceToAdd);
    }
    return list;
}
Also used : ApplicationInsightsComponent(com.microsoft.azure.management.applicationinsights.v2015_05_01.ApplicationInsightsComponent)

Aggregations

ApplicationInsightsComponent (com.microsoft.azure.management.applicationinsights.v2015_05_01.ApplicationInsightsComponent)5 ApplicationInsightsResource (com.microsoft.applicationinsights.preference.ApplicationInsightsResource)3 InsightsManager (com.microsoft.azure.management.applicationinsights.v2015_05_01.implementation.InsightsManager)2 Subscription (com.microsoft.azure.toolkit.lib.common.model.Subscription)2 IOException (java.io.IOException)2 JsonParseException (com.google.gson.JsonParseException)1 Azure (com.microsoft.azure.management.Azure)1 AzureString (com.microsoft.azure.toolkit.lib.common.bundle.AzureString)1 AzureTask (com.microsoft.azure.toolkit.lib.common.task.AzureTask)1 AzureCmdException (com.microsoft.azuretools.azurecommons.helpers.AzureCmdException)1