Search in sources :

Example 1 with ApplicationInsightsPageTableElements

use of com.microsoft.applicationinsights.preference.ApplicationInsightsPageTableElements in project azure-tools-for-java by Microsoft.

the class AppInsightsMngmtPanel method getTableContent.

private List<ApplicationInsightsPageTableElement> getTableContent() {
    AzureSettings.getSafeInstance(myProject).loadAppInsights();
    List<ApplicationInsightsResource> resourceList = ApplicationInsightsResourceRegistry.getAppInsightsResrcList();
    List<ApplicationInsightsPageTableElement> tableRowElements = new ArrayList<ApplicationInsightsPageTableElement>();
    for (ApplicationInsightsResource resource : resourceList) {
        if (resource != null) {
            ApplicationInsightsPageTableElement ele = new ApplicationInsightsPageTableElement();
            ele.setResourceName(resource.getResourceName());
            ele.setInstrumentationKey(resource.getInstrumentationKey());
            tableRowElements.add(ele);
        }
    }
    ApplicationInsightsPageTableElements elements = new ApplicationInsightsPageTableElements();
    elements.setElements(tableRowElements);
    return elements.getElements();
}
Also used : ApplicationInsightsResource(com.microsoft.applicationinsights.preference.ApplicationInsightsResource) ApplicationInsightsPageTableElements(com.microsoft.applicationinsights.preference.ApplicationInsightsPageTableElements) ApplicationInsightsPageTableElement(com.microsoft.applicationinsights.preference.ApplicationInsightsPageTableElement) ArrayList(java.util.ArrayList)

Aggregations

ApplicationInsightsPageTableElement (com.microsoft.applicationinsights.preference.ApplicationInsightsPageTableElement)1 ApplicationInsightsPageTableElements (com.microsoft.applicationinsights.preference.ApplicationInsightsPageTableElements)1 ApplicationInsightsResource (com.microsoft.applicationinsights.preference.ApplicationInsightsResource)1 ArrayList (java.util.ArrayList)1