interface ComponentMonitoringSettingProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ApplicationInsights.CfnApplication.ComponentMonitoringSettingProperty |
Java | software.amazon.awscdk.services.applicationinsights.CfnApplication.ComponentMonitoringSettingProperty |
Python | aws_cdk.aws_applicationinsights.CfnApplication.ComponentMonitoringSettingProperty |
TypeScript | @aws-cdk/aws-applicationinsights » CfnApplication » ComponentMonitoringSettingProperty |
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 * as applicationinsights from '@aws-cdk/aws-applicationinsights';
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',
}],
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',
}],
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',
}],
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',
}],
windowsEvents: [{
eventLevels: ['eventLevels'],
eventName: 'eventName',
logGroupName: 'logGroupName',
// the properties below are optional
patternSet: 'patternSet',
}],
},
subComponentType: 'subComponentType',
}],
},
};
Properties
Name | Type | Description |
---|---|---|
component | string | Component monitoring can be configured in one of the following three modes:. |
tier | string | The tier of the application component. |
component | string | The ARN of the component. |
component | string | The name of the component. |
custom | IResolvable | Component | Customized monitoring settings. |
default | IResolvable | Component | Customized overwrite monitoring settings. |
componentConfigurationMode
Type:
string
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.
tier
Type:
string
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
, and DEFAULT
.
componentArn?
Type:
string
(optional)
The ARN of the component.
componentName?
Type:
string
(optional)
The name of the component.
customComponentConfiguration?
Type:
IResolvable
|
Component
(optional)
Customized monitoring settings.
Required if CUSTOM mode is configured in ComponentConfigurationMode
.
defaultOverwriteComponentConfiguration?
Type:
IResolvable
|
Component
(optional)
Customized overwrite monitoring settings.
Required if CUSTOM mode is configured in ComponentConfigurationMode
.