interface CfnAlarmMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins.CfnAlarmMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslightsail/mixins#CfnAlarmMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.lightsail.mixins.CfnAlarmMixinProps |
Python | aws_cdk.mixins_preview.aws_lightsail.mixins.CfnAlarmMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_lightsail » mixins » CfnAlarmMixinProps |
Properties for CfnAlarmPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-alarm.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lightsail_mixins } from '@aws-cdk/mixins-preview/aws-lightsail';
const cfnAlarmMixinProps: lightsail_mixins.CfnAlarmMixinProps = {
alarmName: 'alarmName',
comparisonOperator: 'comparisonOperator',
contactProtocols: ['contactProtocols'],
datapointsToAlarm: 123,
evaluationPeriods: 123,
metricName: 'metricName',
monitoredResourceName: 'monitoredResourceName',
notificationEnabled: false,
notificationTriggers: ['notificationTriggers'],
threshold: 123,
treatMissingData: 'treatMissingData',
};
Properties
| Name | Type | Description |
|---|---|---|
| alarm | string | The name of the alarm. |
| comparison | string | The arithmetic operation to use when comparing the specified statistic and threshold. |
| contact | string[] | The contact protocols for the alarm, such as Email , SMS (text messaging), or both. |
| datapoints | number | The number of data points within the evaluation periods that must be breaching to cause the alarm to go to the ALARM state. |
| evaluation | number | The number of periods over which data is compared to the specified threshold. |
| metric | string | The name of the metric associated with the alarm. |
| monitored | string | The name of the Lightsail resource that the alarm monitors. |
| notification | boolean | IResolvable | A Boolean value indicating whether the alarm is enabled. |
| notification | string[] | The alarm states that trigger a notification. |
| threshold? | number | The value against which the specified statistic is compared. |
| treat | string | Specifies how the alarm handles missing data points. |
alarmName?
Type:
string
(optional)
The name of the alarm.
comparisonOperator?
Type:
string
(optional)
The arithmetic operation to use when comparing the specified statistic and threshold.
contactProtocols?
Type:
string[]
(optional)
The contact protocols for the alarm, such as Email , SMS (text messaging), or both.
Allowed Values : Email | SMS
datapointsToAlarm?
Type:
number
(optional)
The number of data points within the evaluation periods that must be breaching to cause the alarm to go to the ALARM state.
evaluationPeriods?
Type:
number
(optional)
The number of periods over which data is compared to the specified threshold.
metricName?
Type:
string
(optional)
The name of the metric associated with the alarm.
monitoredResourceName?
Type:
string
(optional)
The name of the Lightsail resource that the alarm monitors.
notificationEnabled?
Type:
boolean | IResolvable
(optional)
A Boolean value indicating whether the alarm is enabled.
notificationTriggers?
Type:
string[]
(optional)
The alarm states that trigger a notification.
To specify the
OKandINSUFFICIENT_DATAvalues, you must also specifyContactProtocolsvalues. Otherwise, theOKandINSUFFICIENT_DATAvalues will not take effect and the stack will drift.
Allowed Values : OK | ALARM | INSUFFICIENT_DATA
threshold?
Type:
number
(optional)
The value against which the specified statistic is compared.
treatMissingData?
Type:
string
(optional)
Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching- Assumes the missing data is not within the threshold. Missing data counts towards the number of times that the metric is not within the threshold.notBreaching- Assumes the missing data is within the threshold. Missing data does not count towards the number of times that the metric is not within the threshold.ignore- Ignores the missing data. Maintains the current alarm state.missing- Missing data is treated as missing.

.NET
Go
Java
Python
TypeScript