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();
}
Aggregations