use of com.microsoft.azure.toolkit.lib.appservice.ApplicationInsightsConfig in project azure-tools-for-java by Microsoft.
the class ApplicationInsightsComboBox method onCreateApplicationInsights.
private void onCreateApplicationInsights() {
final CreateApplicationInsightsDialog dialog = new CreateApplicationInsightsDialog();
dialog.pack();
if (dialog.showAndGet()) {
ApplicationInsightsConfig config = ApplicationInsightsConfig.builder().newCreate(true).name(dialog.getApplicationInsightsName()).build();
addItem(config);
setSelectedItem(config);
}
}
use of com.microsoft.azure.toolkit.lib.appservice.ApplicationInsightsConfig in project azure-tools-for-java by Microsoft.
the class AppServiceMonitorPanel method getData.
@Override
public MonitorConfig getData() {
final ApplicationInsightsConfig insightsConfig = (rdoEnableApplicationInsights.isSelected() && titleApplicationInsights.isVisible()) ? applicationInsightsComboBox.getValue() : null;
final DiagnosticConfig diagnosticConfig = DiagnosticConfig.builder().enableWebServerLogging(rdoEnableWebServerLog.isSelected() && lblWebServerLog.isVisible()).webServerLogQuota(txtQuota.getValue()).webServerRetentionPeriod(txtRetention.getValue()).enableDetailedErrorMessage(rdoEnableDetailError.isSelected()).enableFailedRequestTracing(rdoEnableFailedRequest.isSelected()).enableApplicationLog(rdoEnableApplicationLog.isSelected() && lblApplicationLog.isVisible()).applicationLogLevel(cbLogLevel.getValue()).build();
return MonitorConfig.builder().applicationInsightsConfig(insightsConfig).diagnosticConfig(diagnosticConfig).build();
}
Aggregations