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()))
.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()))
.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()))
.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()))
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApplication.ComponentMonitoringSettingPropertystatic final classAn implementation forCfnApplication.ComponentMonitoringSettingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe ARN of the component.Component monitoring can be configured in one of the following three modes:.default StringThe name of the component.default ObjectCustomized monitoring settings.default ObjectCustomized 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,CustomComponentConfigurationmust 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,DefaultOverwriteComponentConfigurationmust be provided.
-
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. -
getComponentArn
The ARN of the component. -
getComponentName
The name of the component. -
getCustomComponentConfiguration
Customized monitoring settings.Required if CUSTOM mode is configured in
ComponentConfigurationMode. -
getDefaultOverwriteComponentConfiguration
Customized overwrite monitoring settings.Required if CUSTOM mode is configured in
ComponentConfigurationMode. -
builder
-