AlarmProperty Struct
The AWS::ApplicationInsights::Application Alarm property type defines a CloudWatch alarm to be monitored for 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 alarmProperty: applicationinsights.CfnApplication.AlarmProperty = {
alarmName: 'alarmName',
// the properties below are optional
severity: 'severity',
};
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
alarm_property = applicationinsights.CfnApplication.AlarmProperty(
alarm_name="alarmName",
# the properties below are optional
severity="severity"
)
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.*;
AlarmProperty alarmProperty = AlarmProperty.builder()
.alarmName("alarmName")
// the properties below are optional
.severity("severity")
.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 alarmProperty = new AlarmProperty {
AlarmName = "alarmName",
// the properties below are optional
Severity = "severity"
};
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"
alarmProperty := &AlarmProperty{
AlarmName: jsii.String("alarmName"),
// the properties below are optional
Severity: jsii.String("severity"),
}
Properties
The name of the CloudWatch alarm to be monitored for the component.
severityoptionalstringseverityoptionalstrseverityoptionalStringSeverityoptionalstringSeverityoptional*string #Indicates the degree of outage when the alarm goes off.