ComponentMonitoringSettingProperty Struct
The AWS::ApplicationInsights::Application ComponentMonitoringSetting property type defines the monitoring setting of the component.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const componentMonitoringSettingProperty: applicationinsights.CfnApplication.ComponentMonitoringSettingProperty = {
componentConfigurationMode: 'componentConfigurationMode',
tier: 'tier',
// the properties below are optional
componentArn: 'componentArn',
componentName: 'componentName',
customComponentConfiguration: {
configurationDetails: {
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
alarms: [{
alarmName: 'alarmName',
// the properties below are optional
severity: 'severity',
}],
haClusterPrometheusExporter: {
prometheusPort: 'prometheusPort',
},
hanaPrometheusExporter: {
agreeToInstallHanadbClient: false,
hanaPort: 'hanaPort',
hanaSecretName: 'hanaSecretName',
hanasid: 'hanasid',
// the properties below are optional
prometheusPort: 'prometheusPort',
},
jmxPrometheusExporter: {
hostPort: 'hostPort',
jmxurl: 'jmxurl',
prometheusPort: 'prometheusPort',
},
logs: [{
logType: 'logType',
// the properties below are optional
encoding: 'encoding',
logGroupName: 'logGroupName',
logPath: 'logPath',
patternSet: 'patternSet',
}],
netWeaverPrometheusExporter: {
instanceNumbers: ['instanceNumbers'],
sapsid: 'sapsid',
// the properties below are optional
prometheusPort: 'prometheusPort',
},
processes: [{
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
processName: 'processName',
}],
sqlServerPrometheusExporter: {
prometheusPort: 'prometheusPort',
sqlSecretName: 'sqlSecretName',
},
windowsEvents: [{
eventLevels: ['eventLevels'],
eventName: 'eventName',
logGroupName: 'logGroupName',
// the properties below are optional
patternSet: 'patternSet',
}],
},
subComponentTypeConfigurations: [{
subComponentConfigurationDetails: {
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
logs: [{
logType: 'logType',
// the properties below are optional
encoding: 'encoding',
logGroupName: 'logGroupName',
logPath: 'logPath',
patternSet: 'patternSet',
}],
processes: [{
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
processName: 'processName',
}],
windowsEvents: [{
eventLevels: ['eventLevels'],
eventName: 'eventName',
logGroupName: 'logGroupName',
// the properties below are optional
patternSet: 'patternSet',
}],
},
subComponentType: 'subComponentType',
}],
},
defaultOverwriteComponentConfiguration: {
configurationDetails: {
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
alarms: [{
alarmName: 'alarmName',
// the properties below are optional
severity: 'severity',
}],
haClusterPrometheusExporter: {
prometheusPort: 'prometheusPort',
},
hanaPrometheusExporter: {
agreeToInstallHanadbClient: false,
hanaPort: 'hanaPort',
hanaSecretName: 'hanaSecretName',
hanasid: 'hanasid',
// the properties below are optional
prometheusPort: 'prometheusPort',
},
jmxPrometheusExporter: {
hostPort: 'hostPort',
jmxurl: 'jmxurl',
prometheusPort: 'prometheusPort',
},
logs: [{
logType: 'logType',
// the properties below are optional
encoding: 'encoding',
logGroupName: 'logGroupName',
logPath: 'logPath',
patternSet: 'patternSet',
}],
netWeaverPrometheusExporter: {
instanceNumbers: ['instanceNumbers'],
sapsid: 'sapsid',
// the properties below are optional
prometheusPort: 'prometheusPort',
},
processes: [{
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
processName: 'processName',
}],
sqlServerPrometheusExporter: {
prometheusPort: 'prometheusPort',
sqlSecretName: 'sqlSecretName',
},
windowsEvents: [{
eventLevels: ['eventLevels'],
eventName: 'eventName',
logGroupName: 'logGroupName',
// the properties below are optional
patternSet: 'patternSet',
}],
},
subComponentTypeConfigurations: [{
subComponentConfigurationDetails: {
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
logs: [{
logType: 'logType',
// the properties below are optional
encoding: 'encoding',
logGroupName: 'logGroupName',
logPath: 'logPath',
patternSet: 'patternSet',
}],
processes: [{
alarmMetrics: [{
alarmMetricName: 'alarmMetricName',
}],
processName: 'processName',
}],
windowsEvents: [{
eventLevels: ['eventLevels'],
eventName: 'eventName',
logGroupName: 'logGroupName',
// the properties below are optional
patternSet: 'patternSet',
}],
},
subComponentType: 'subComponentType',
}],
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationinsights as applicationinsights
component_monitoring_setting_property = applicationinsights.CfnApplication.ComponentMonitoringSettingProperty(
component_configuration_mode="componentConfigurationMode",
tier="tier",
# the properties below are optional
component_arn="componentArn",
component_name="componentName",
custom_component_configuration=applicationinsights.CfnApplication.ComponentConfigurationProperty(
configuration_details=applicationinsights.CfnApplication.ConfigurationDetailsProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
alarms=[applicationinsights.CfnApplication.AlarmProperty(
alarm_name="alarmName",
# the properties below are optional
severity="severity"
)],
ha_cluster_prometheus_exporter=applicationinsights.CfnApplication.HAClusterPrometheusExporterProperty(
prometheus_port="prometheusPort"
),
hana_prometheus_exporter=applicationinsights.CfnApplication.HANAPrometheusExporterProperty(
agree_to_install_hanadb_client=False,
hana_port="hanaPort",
hana_secret_name="hanaSecretName",
hanasid="hanasid",
# the properties below are optional
prometheus_port="prometheusPort"
),
jmx_prometheus_exporter=applicationinsights.CfnApplication.JMXPrometheusExporterProperty(
host_port="hostPort",
jmxurl="jmxurl",
prometheus_port="prometheusPort"
),
logs=[applicationinsights.CfnApplication.LogProperty(
log_type="logType",
# the properties below are optional
encoding="encoding",
log_group_name="logGroupName",
log_path="logPath",
pattern_set="patternSet"
)],
net_weaver_prometheus_exporter=applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty(
instance_numbers=["instanceNumbers"],
sapsid="sapsid",
# the properties below are optional
prometheus_port="prometheusPort"
),
processes=[applicationinsights.CfnApplication.ProcessProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
process_name="processName"
)],
sql_server_prometheus_exporter=applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty(
prometheus_port="prometheusPort",
sql_secret_name="sqlSecretName"
),
windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
event_levels=["eventLevels"],
event_name="eventName",
log_group_name="logGroupName",
# the properties below are optional
pattern_set="patternSet"
)]
),
sub_component_type_configurations=[applicationinsights.CfnApplication.SubComponentTypeConfigurationProperty(
sub_component_configuration_details=applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
logs=[applicationinsights.CfnApplication.LogProperty(
log_type="logType",
# the properties below are optional
encoding="encoding",
log_group_name="logGroupName",
log_path="logPath",
pattern_set="patternSet"
)],
processes=[applicationinsights.CfnApplication.ProcessProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
process_name="processName"
)],
windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
event_levels=["eventLevels"],
event_name="eventName",
log_group_name="logGroupName",
# the properties below are optional
pattern_set="patternSet"
)]
),
sub_component_type="subComponentType"
)]
),
default_overwrite_component_configuration=applicationinsights.CfnApplication.ComponentConfigurationProperty(
configuration_details=applicationinsights.CfnApplication.ConfigurationDetailsProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
alarms=[applicationinsights.CfnApplication.AlarmProperty(
alarm_name="alarmName",
# the properties below are optional
severity="severity"
)],
ha_cluster_prometheus_exporter=applicationinsights.CfnApplication.HAClusterPrometheusExporterProperty(
prometheus_port="prometheusPort"
),
hana_prometheus_exporter=applicationinsights.CfnApplication.HANAPrometheusExporterProperty(
agree_to_install_hanadb_client=False,
hana_port="hanaPort",
hana_secret_name="hanaSecretName",
hanasid="hanasid",
# the properties below are optional
prometheus_port="prometheusPort"
),
jmx_prometheus_exporter=applicationinsights.CfnApplication.JMXPrometheusExporterProperty(
host_port="hostPort",
jmxurl="jmxurl",
prometheus_port="prometheusPort"
),
logs=[applicationinsights.CfnApplication.LogProperty(
log_type="logType",
# the properties below are optional
encoding="encoding",
log_group_name="logGroupName",
log_path="logPath",
pattern_set="patternSet"
)],
net_weaver_prometheus_exporter=applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty(
instance_numbers=["instanceNumbers"],
sapsid="sapsid",
# the properties below are optional
prometheus_port="prometheusPort"
),
processes=[applicationinsights.CfnApplication.ProcessProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
process_name="processName"
)],
sql_server_prometheus_exporter=applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty(
prometheus_port="prometheusPort",
sql_secret_name="sqlSecretName"
),
windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
event_levels=["eventLevels"],
event_name="eventName",
log_group_name="logGroupName",
# the properties below are optional
pattern_set="patternSet"
)]
),
sub_component_type_configurations=[applicationinsights.CfnApplication.SubComponentTypeConfigurationProperty(
sub_component_configuration_details=applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
logs=[applicationinsights.CfnApplication.LogProperty(
log_type="logType",
# the properties below are optional
encoding="encoding",
log_group_name="logGroupName",
log_path="logPath",
pattern_set="patternSet"
)],
processes=[applicationinsights.CfnApplication.ProcessProperty(
alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
alarm_metric_name="alarmMetricName"
)],
process_name="processName"
)],
windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
event_levels=["eventLevels"],
event_name="eventName",
log_group_name="logGroupName",
# the properties below are optional
pattern_set="patternSet"
)]
),
sub_component_type="subComponentType"
)]
)
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationInsights;
var componentMonitoringSettingProperty = new ComponentMonitoringSettingProperty {
ComponentConfigurationMode = "componentConfigurationMode",
Tier = "tier",
// the properties below are optional
ComponentArn = "componentArn",
ComponentName = "componentName",
CustomComponentConfiguration = new ComponentConfigurationProperty {
ConfigurationDetails = new ConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Alarms = new [] { new AlarmProperty {
AlarmName = "alarmName",
// the properties below are optional
Severity = "severity"
} },
HaClusterPrometheusExporter = new HAClusterPrometheusExporterProperty {
PrometheusPort = "prometheusPort"
},
HanaPrometheusExporter = new HANAPrometheusExporterProperty {
AgreeToInstallHanadbClient = false,
HanaPort = "hanaPort",
HanaSecretName = "hanaSecretName",
Hanasid = "hanasid",
// the properties below are optional
PrometheusPort = "prometheusPort"
},
JmxPrometheusExporter = new JMXPrometheusExporterProperty {
HostPort = "hostPort",
Jmxurl = "jmxurl",
PrometheusPort = "prometheusPort"
},
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
NetWeaverPrometheusExporter = new NetWeaverPrometheusExporterProperty {
InstanceNumbers = new [] { "instanceNumbers" },
Sapsid = "sapsid",
// the properties below are optional
PrometheusPort = "prometheusPort"
},
Processes = new [] { new ProcessProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
ProcessName = "processName"
} },
SqlServerPrometheusExporter = new SQLServerPrometheusExporterProperty {
PrometheusPort = "prometheusPort",
SqlSecretName = "sqlSecretName"
},
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentTypeConfigurations = new [] { new SubComponentTypeConfigurationProperty {
SubComponentConfigurationDetails = new SubComponentConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
Processes = new [] { new ProcessProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
ProcessName = "processName"
} },
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentType = "subComponentType"
} }
},
DefaultOverwriteComponentConfiguration = new ComponentConfigurationProperty {
ConfigurationDetails = new ConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Alarms = new [] { new AlarmProperty {
AlarmName = "alarmName",
// the properties below are optional
Severity = "severity"
} },
HaClusterPrometheusExporter = new HAClusterPrometheusExporterProperty {
PrometheusPort = "prometheusPort"
},
HanaPrometheusExporter = new HANAPrometheusExporterProperty {
AgreeToInstallHanadbClient = false,
HanaPort = "hanaPort",
HanaSecretName = "hanaSecretName",
Hanasid = "hanasid",
// the properties below are optional
PrometheusPort = "prometheusPort"
},
JmxPrometheusExporter = new JMXPrometheusExporterProperty {
HostPort = "hostPort",
Jmxurl = "jmxurl",
PrometheusPort = "prometheusPort"
},
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
NetWeaverPrometheusExporter = new NetWeaverPrometheusExporterProperty {
InstanceNumbers = new [] { "instanceNumbers" },
Sapsid = "sapsid",
// the properties below are optional
PrometheusPort = "prometheusPort"
},
Processes = new [] { new ProcessProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
ProcessName = "processName"
} },
SqlServerPrometheusExporter = new SQLServerPrometheusExporterProperty {
PrometheusPort = "prometheusPort",
SqlSecretName = "sqlSecretName"
},
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentTypeConfigurations = new [] { new SubComponentTypeConfigurationProperty {
SubComponentConfigurationDetails = new SubComponentConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
Processes = new [] { new ProcessProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
ProcessName = "processName"
} },
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentType = "subComponentType"
} }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
componentMonitoringSettingProperty := &ComponentMonitoringSettingProperty{
ComponentConfigurationMode: jsii.String("componentConfigurationMode"),
Tier: jsii.String("tier"),
// the properties below are optional
ComponentArn: jsii.String("componentArn"),
ComponentName: jsii.String("componentName"),
CustomComponentConfiguration: &ComponentConfigurationProperty{
ConfigurationDetails: &ConfigurationDetailsProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
Alarms: []interface{}{
&AlarmProperty{
AlarmName: jsii.String("alarmName"),
// the properties below are optional
Severity: jsii.String("severity"),
},
},
HaClusterPrometheusExporter: &HAClusterPrometheusExporterProperty{
PrometheusPort: jsii.String("prometheusPort"),
},
HanaPrometheusExporter: &HANAPrometheusExporterProperty{
AgreeToInstallHanadbClient: jsii.Boolean(false),
HanaPort: jsii.String("hanaPort"),
HanaSecretName: jsii.String("hanaSecretName"),
Hanasid: jsii.String("hanasid"),
// the properties below are optional
PrometheusPort: jsii.String("prometheusPort"),
},
JmxPrometheusExporter: &JMXPrometheusExporterProperty{
HostPort: jsii.String("hostPort"),
Jmxurl: jsii.String("jmxurl"),
PrometheusPort: jsii.String("prometheusPort"),
},
Logs: []interface{}{
&LogProperty{
LogType: jsii.String("logType"),
// the properties below are optional
Encoding: jsii.String("encoding"),
LogGroupName: jsii.String("logGroupName"),
LogPath: jsii.String("logPath"),
PatternSet: jsii.String("patternSet"),
},
},
NetWeaverPrometheusExporter: &NetWeaverPrometheusExporterProperty{
InstanceNumbers: []*string{
jsii.String("instanceNumbers"),
},
Sapsid: jsii.String("sapsid"),
// the properties below are optional
PrometheusPort: jsii.String("prometheusPort"),
},
Processes: []interface{}{
&ProcessProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
ProcessName: jsii.String("processName"),
},
},
SqlServerPrometheusExporter: &SQLServerPrometheusExporterProperty{
PrometheusPort: jsii.String("prometheusPort"),
SqlSecretName: jsii.String("sqlSecretName"),
},
WindowsEvents: []interface{}{
&WindowsEventProperty{
EventLevels: []*string{
jsii.String("eventLevels"),
},
EventName: jsii.String("eventName"),
LogGroupName: jsii.String("logGroupName"),
// the properties below are optional
PatternSet: jsii.String("patternSet"),
},
},
},
SubComponentTypeConfigurations: []interface{}{
&SubComponentTypeConfigurationProperty{
SubComponentConfigurationDetails: &SubComponentConfigurationDetailsProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
Logs: []interface{}{
&LogProperty{
LogType: jsii.String("logType"),
// the properties below are optional
Encoding: jsii.String("encoding"),
LogGroupName: jsii.String("logGroupName"),
LogPath: jsii.String("logPath"),
PatternSet: jsii.String("patternSet"),
},
},
Processes: []interface{}{
&ProcessProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
ProcessName: jsii.String("processName"),
},
},
WindowsEvents: []interface{}{
&WindowsEventProperty{
EventLevels: []*string{
jsii.String("eventLevels"),
},
EventName: jsii.String("eventName"),
LogGroupName: jsii.String("logGroupName"),
// the properties below are optional
PatternSet: jsii.String("patternSet"),
},
},
},
SubComponentType: jsii.String("subComponentType"),
},
},
},
DefaultOverwriteComponentConfiguration: &ComponentConfigurationProperty{
ConfigurationDetails: &ConfigurationDetailsProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
Alarms: []interface{}{
&AlarmProperty{
AlarmName: jsii.String("alarmName"),
// the properties below are optional
Severity: jsii.String("severity"),
},
},
HaClusterPrometheusExporter: &HAClusterPrometheusExporterProperty{
PrometheusPort: jsii.String("prometheusPort"),
},
HanaPrometheusExporter: &HANAPrometheusExporterProperty{
AgreeToInstallHanadbClient: jsii.Boolean(false),
HanaPort: jsii.String("hanaPort"),
HanaSecretName: jsii.String("hanaSecretName"),
Hanasid: jsii.String("hanasid"),
// the properties below are optional
PrometheusPort: jsii.String("prometheusPort"),
},
JmxPrometheusExporter: &JMXPrometheusExporterProperty{
HostPort: jsii.String("hostPort"),
Jmxurl: jsii.String("jmxurl"),
PrometheusPort: jsii.String("prometheusPort"),
},
Logs: []interface{}{
&LogProperty{
LogType: jsii.String("logType"),
// the properties below are optional
Encoding: jsii.String("encoding"),
LogGroupName: jsii.String("logGroupName"),
LogPath: jsii.String("logPath"),
PatternSet: jsii.String("patternSet"),
},
},
NetWeaverPrometheusExporter: &NetWeaverPrometheusExporterProperty{
InstanceNumbers: []*string{
jsii.String("instanceNumbers"),
},
Sapsid: jsii.String("sapsid"),
// the properties below are optional
PrometheusPort: jsii.String("prometheusPort"),
},
Processes: []interface{}{
&ProcessProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
ProcessName: jsii.String("processName"),
},
},
SqlServerPrometheusExporter: &SQLServerPrometheusExporterProperty{
PrometheusPort: jsii.String("prometheusPort"),
SqlSecretName: jsii.String("sqlSecretName"),
},
WindowsEvents: []interface{}{
&WindowsEventProperty{
EventLevels: []*string{
jsii.String("eventLevels"),
},
EventName: jsii.String("eventName"),
LogGroupName: jsii.String("logGroupName"),
// the properties below are optional
PatternSet: jsii.String("patternSet"),
},
},
},
SubComponentTypeConfigurations: []interface{}{
&SubComponentTypeConfigurationProperty{
SubComponentConfigurationDetails: &SubComponentConfigurationDetailsProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
Logs: []interface{}{
&LogProperty{
LogType: jsii.String("logType"),
// the properties below are optional
Encoding: jsii.String("encoding"),
LogGroupName: jsii.String("logGroupName"),
LogPath: jsii.String("logPath"),
PatternSet: jsii.String("patternSet"),
},
},
Processes: []interface{}{
&ProcessProperty{
AlarmMetrics: []interface{}{
&AlarmMetricProperty{
AlarmMetricName: jsii.String("alarmMetricName"),
},
},
ProcessName: jsii.String("processName"),
},
},
WindowsEvents: []interface{}{
&WindowsEventProperty{
EventLevels: []*string{
jsii.String("eventLevels"),
},
EventName: jsii.String("eventName"),
LogGroupName: jsii.String("logGroupName"),
// the properties below are optional
PatternSet: jsii.String("patternSet"),
},
},
},
SubComponentType: jsii.String("subComponentType"),
},
},
},
}
Properties
componentArnoptionalstringcomponent_arnoptionalstrcomponentArnoptionalStringComponentArnoptionalstringComponentArnoptional*string #The ARN of the component.
Either the component ARN or the component name is required.
componentConfigurationModestringcomponent_configuration_modestrcomponentConfigurationModeStringComponentConfigurationModestringComponentConfigurationMode*string required #Component monitoring can be configured in one of the following three modes:.
notes
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.
componentNameoptionalstringcomponent_nameoptionalstrcomponentNameoptionalStringComponentNameoptionalstringComponentNameoptional*string #The name of the component.
Either the component ARN or the component name is required.
customComponentConfigurationoptionalIResolvable | CfnApplication.custom_component_configurationoptionaltyping.Union[IResolvable, ComponentConfigurationProperty]customComponentConfigurationoptionalIResolvableCustomComponentConfigurationoptionalIResolvableCustomComponentConfigurationoptionalinterface{} #Customized monitoring settings.
Required if CUSTOM mode is configured in ComponentConfigurationMode .
defaultOverwriteComponentConfigurationoptionalIResolvable | CfnApplication.default_overwrite_component_configurationoptionaltyping.Union[IResolvable, ComponentConfigurationProperty]defaultOverwriteComponentConfigurationoptionalIResolvableDefaultOverwriteComponentConfigurationoptionalIResolvableDefaultOverwriteComponentConfigurationoptionalinterface{} #Customized overwrite monitoring settings.
Required if CUSTOM mode is configured in ComponentConfigurationMode .
The tier of the application component.
notes
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 , and DEFAULT .