interface CfnAlertProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.LookoutMetrics.CfnAlertProps |
Java | software.amazon.awscdk.services.lookoutmetrics.CfnAlertProps |
Python | aws_cdk.aws_lookoutmetrics.CfnAlertProps |
TypeScript | @aws-cdk/aws-lookoutmetrics » CfnAlertProps |
Properties for defining a CfnAlert
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lookoutmetrics from '@aws-cdk/aws-lookoutmetrics';
const cfnAlertProps: lookoutmetrics.CfnAlertProps = {
action: {
lambdaConfiguration: {
lambdaArn: 'lambdaArn',
roleArn: 'roleArn',
},
snsConfiguration: {
roleArn: 'roleArn',
snsTopicArn: 'snsTopicArn',
},
},
alertSensitivityThreshold: 123,
anomalyDetectorArn: 'anomalyDetectorArn',
// the properties below are optional
alertDescription: 'alertDescription',
alertName: 'alertName',
};
Properties
Name | Type | Description |
---|---|---|
action | Action | IResolvable | Action that will be triggered when there is an alert. |
alert | number | An integer from 0 to 100 specifying the alert sensitivity threshold. |
anomaly | string | The ARN of the detector to which the alert is attached. |
alert | string | A description of the alert. |
alert | string | The name of the alert. |
action
Type:
Action
|
IResolvable
Action that will be triggered when there is an alert.
alertSensitivityThreshold
Type:
number
An integer from 0 to 100 specifying the alert sensitivity threshold.
anomalyDetectorArn
Type:
string
The ARN of the detector to which the alert is attached.
alertDescription?
Type:
string
(optional)
A description of the alert.
alertName?
Type:
string
(optional)
The name of the alert.