Interface ICfnApplicationProps
Properties for defining a CfnApplication
.
Namespace: Amazon.CDK.AWS.ApplicationInsights
Assembly: Amazon.CDK.AWS.ApplicationInsights.dll
Syntax (csharp)
public interface ICfnApplicationProps
Syntax (vb)
Public Interface ICfnApplicationProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 cfnApplicationProps = new CfnApplicationProps {
ResourceGroupName = "resourceGroupName",
// the properties below are optional
AutoConfigurationEnabled = false,
ComponentMonitoringSettings = new [] { 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"
} },
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"
} },
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"
} },
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"
} },
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentType = "subComponentType"
} }
}
} },
CustomComponents = new [] { new CustomComponentProperty {
ComponentName = "componentName",
ResourceList = new [] { "resourceList" }
} },
CweMonitorEnabled = false,
GroupingType = "groupingType",
LogPatternSets = new [] { new LogPatternSetProperty {
LogPatterns = new [] { new LogPatternProperty {
Pattern = "pattern",
PatternName = "patternName",
Rank = 123
} },
PatternSetName = "patternSetName"
} },
OpsCenterEnabled = false,
OpsItemSnsTopicArn = "opsItemSnsTopicArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
AutoConfigurationEnabled | If set to |
ComponentMonitoringSettings | The monitoring settings of the components. |
CustomComponents | Describes a custom component by grouping similar standalone instances to monitor. |
CweMonitorEnabled | Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as |
GroupingType | Application Insights can create applications based on a resource group or on an account. |
LogPatternSets | The log pattern sets. |
OpsCenterEnabled | Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. |
OpsItemSnsTopicArn | The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates. |
ResourceGroupName | The name of the resource group used for the application. |
Tags | An array of |
Properties
AutoConfigurationEnabled
If set to true
, the application components will be configured with the monitoring configuration recommended by Application Insights.
virtual object AutoConfigurationEnabled { get; }
Property Value
System.Object
Remarks
ComponentMonitoringSettings
The monitoring settings of the components.
virtual object ComponentMonitoringSettings { get; }
Property Value
System.Object
Remarks
CustomComponents
Describes a custom component by grouping similar standalone instances to monitor.
virtual object CustomComponents { get; }
Property Value
System.Object
Remarks
CweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated
, failed deployment
, and others.
virtual object CweMonitorEnabled { get; }
Property Value
System.Object
Remarks
GroupingType
Application Insights can create applications based on a resource group or on an account.
virtual string GroupingType { get; }
Property Value
System.String
Remarks
To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED
.
LogPatternSets
The log pattern sets.
virtual object LogPatternSets { get; }
Property Value
System.Object
Remarks
OpsCenterEnabled
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
virtual object OpsCenterEnabled { get; }
Property Value
System.Object
Remarks
OpsItemSnsTopicArn
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
virtual string OpsItemSnsTopicArn { get; }
Property Value
System.String
Remarks
ResourceGroupName
The name of the resource group used for the application.
string ResourceGroupName { get; }
Property Value
System.String