Search in sources :

Example 1 with ApplicationInsightsConfig

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);
    }
}
Also used : CreateApplicationInsightsDialog(com.microsoft.azure.toolkit.intellij.function.runner.component.CreateApplicationInsightsDialog) ApplicationInsightsConfig(com.microsoft.azure.toolkit.lib.appservice.ApplicationInsightsConfig)

Example 2 with ApplicationInsightsConfig

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();
}
Also used : ApplicationInsightsConfig(com.microsoft.azure.toolkit.lib.appservice.ApplicationInsightsConfig) DiagnosticConfig(com.microsoft.azure.toolkit.lib.appservice.model.DiagnosticConfig)

Aggregations

ApplicationInsightsConfig (com.microsoft.azure.toolkit.lib.appservice.ApplicationInsightsConfig)2 CreateApplicationInsightsDialog (com.microsoft.azure.toolkit.intellij.function.runner.component.CreateApplicationInsightsDialog)1 DiagnosticConfig (com.microsoft.azure.toolkit.lib.appservice.model.DiagnosticConfig)1