Interface CfnApplication.ComponentMonitoringSettingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplication.ComponentMonitoringSettingProperty.Jsii$Proxy
- Enclosing class:
CfnApplication
@Stability(Stable)
public static interface CfnApplication.ComponentMonitoringSettingProperty
extends software.amazon.jsii.JsiiSerializable
The
AWS::ApplicationInsights::Application ComponentMonitoringSetting
property type defines the monitoring setting of the component.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.applicationinsights.*; ComponentMonitoringSettingProperty componentMonitoringSettingProperty = ComponentMonitoringSettingProperty.builder() .componentConfigurationMode("componentConfigurationMode") .tier("tier") // the properties below are optional .componentArn("componentArn") .componentName("componentName") .customComponentConfiguration(ComponentConfigurationProperty.builder() .configurationDetails(ConfigurationDetailsProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .alarms(List.of(AlarmProperty.builder() .alarmName("alarmName") // the properties below are optional .severity("severity") .build())) .haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder() .prometheusPort("prometheusPort") .build()) .hanaPrometheusExporter(HANAPrometheusExporterProperty.builder() .agreeToInstallHanadbClient(false) .hanaPort("hanaPort") .hanaSecretName("hanaSecretName") .hanasid("hanasid") // the properties below are optional .prometheusPort("prometheusPort") .build()) .jmxPrometheusExporter(JMXPrometheusExporterProperty.builder() .hostPort("hostPort") .jmxurl("jmxurl") .prometheusPort("prometheusPort") .build()) .logs(List.of(LogProperty.builder() .logType("logType") // the properties below are optional .encoding("encoding") .logGroupName("logGroupName") .logPath("logPath") .patternSet("patternSet") .build())) .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() .instanceNumbers(List.of("instanceNumbers")) .sapsid("sapsid") // the properties below are optional .prometheusPort("prometheusPort") .build()) .processes(List.of(ProcessProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .processName("processName") .build())) .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() .prometheusPort("prometheusPort") .sqlSecretName("sqlSecretName") .build()) .windowsEvents(List.of(WindowsEventProperty.builder() .eventLevels(List.of("eventLevels")) .eventName("eventName") .logGroupName("logGroupName") // the properties below are optional .patternSet("patternSet") .build())) .build()) .subComponentTypeConfigurations(List.of(SubComponentTypeConfigurationProperty.builder() .subComponentConfigurationDetails(SubComponentConfigurationDetailsProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .logs(List.of(LogProperty.builder() .logType("logType") // the properties below are optional .encoding("encoding") .logGroupName("logGroupName") .logPath("logPath") .patternSet("patternSet") .build())) .processes(List.of(ProcessProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .processName("processName") .build())) .windowsEvents(List.of(WindowsEventProperty.builder() .eventLevels(List.of("eventLevels")) .eventName("eventName") .logGroupName("logGroupName") // the properties below are optional .patternSet("patternSet") .build())) .build()) .subComponentType("subComponentType") .build())) .build()) .defaultOverwriteComponentConfiguration(ComponentConfigurationProperty.builder() .configurationDetails(ConfigurationDetailsProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .alarms(List.of(AlarmProperty.builder() .alarmName("alarmName") // the properties below are optional .severity("severity") .build())) .haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder() .prometheusPort("prometheusPort") .build()) .hanaPrometheusExporter(HANAPrometheusExporterProperty.builder() .agreeToInstallHanadbClient(false) .hanaPort("hanaPort") .hanaSecretName("hanaSecretName") .hanasid("hanasid") // the properties below are optional .prometheusPort("prometheusPort") .build()) .jmxPrometheusExporter(JMXPrometheusExporterProperty.builder() .hostPort("hostPort") .jmxurl("jmxurl") .prometheusPort("prometheusPort") .build()) .logs(List.of(LogProperty.builder() .logType("logType") // the properties below are optional .encoding("encoding") .logGroupName("logGroupName") .logPath("logPath") .patternSet("patternSet") .build())) .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() .instanceNumbers(List.of("instanceNumbers")) .sapsid("sapsid") // the properties below are optional .prometheusPort("prometheusPort") .build()) .processes(List.of(ProcessProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .processName("processName") .build())) .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() .prometheusPort("prometheusPort") .sqlSecretName("sqlSecretName") .build()) .windowsEvents(List.of(WindowsEventProperty.builder() .eventLevels(List.of("eventLevels")) .eventName("eventName") .logGroupName("logGroupName") // the properties below are optional .patternSet("patternSet") .build())) .build()) .subComponentTypeConfigurations(List.of(SubComponentTypeConfigurationProperty.builder() .subComponentConfigurationDetails(SubComponentConfigurationDetailsProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .logs(List.of(LogProperty.builder() .logType("logType") // the properties below are optional .encoding("encoding") .logGroupName("logGroupName") .logPath("logPath") .patternSet("patternSet") .build())) .processes(List.of(ProcessProperty.builder() .alarmMetrics(List.of(AlarmMetricProperty.builder() .alarmMetricName("alarmMetricName") .build())) .processName("processName") .build())) .windowsEvents(List.of(WindowsEventProperty.builder() .eventLevels(List.of("eventLevels")) .eventName("eventName") .logGroupName("logGroupName") // the properties below are optional .patternSet("patternSet") .build())) .build()) .subComponentType("subComponentType") .build())) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnApplication.ComponentMonitoringSettingProperty
static final class
An implementation forCfnApplication.ComponentMonitoringSettingProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The ARN of the component.Component monitoring can be configured in one of the following three modes:.default String
The name of the component.default Object
Customized monitoring settings.default Object
Customized overwrite monitoring settings.getTier()
The tier of the application component.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComponentConfigurationMode
Component monitoring can be configured in one of the following three modes:.DEFAULT
: The component will be configured with the recommended default monitoring settings of the selectedTier
.CUSTOM
: The component will be configured with the customized monitoring settings that are specified inCustomComponentConfiguration
. If used,CustomComponentConfiguration
must be provided.DEFAULT_WITH_OVERWRITE
: The component will be configured with the recommended default monitoring settings of the selectedTier
, and merged with customized overwrite settings that are specified inDefaultOverwriteComponentConfiguration
. If used,DefaultOverwriteComponentConfiguration
must be provided.
- See Also:
-
getTier
The tier of the application component.Supported tiers include
DOT_NET_CORE
,DOT_NET_WORKER
,DOT_NET_WEB
,SQL_SERVER
,SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP
,SQL_SERVER_FAILOVER_CLUSTER_INSTANCE
,MYSQL
,POSTGRESQL
,JAVA_JMX
,ORACLE
,SAP_HANA_MULTI_NODE
,SAP_HANA_SINGLE_NODE
,SAP_HANA_HIGH_AVAILABILITY
,SHAREPOINT
.ACTIVE_DIRECTORY
, andDEFAULT
.- See Also:
-
getComponentArn
The ARN of the component.Either the component ARN or the component name is required.
- See Also:
-
getComponentName
The name of the component.Either the component ARN or the component name is required.
- See Also:
-
getCustomComponentConfiguration
Customized monitoring settings.Required if CUSTOM mode is configured in
ComponentConfigurationMode
.- See Also:
-
getDefaultOverwriteComponentConfiguration
Customized overwrite monitoring settings.Required if CUSTOM mode is configured in
ComponentConfigurationMode
.- See Also:
-
builder
-