CfnAlertMixinProps
- class aws_cdk.mixins_preview.aws_lookoutmetrics.mixins.CfnAlertMixinProps(*, action=None, alert_description=None, alert_name=None, alert_sensitivity_threshold=None, anomaly_detector_arn=None)
Bases:
objectProperties for CfnAlertPropsMixin.
- Parameters:
action (
Union[IResolvable,ActionProperty,Dict[str,Any],None]) – Action that will be triggered when there is an alert.alert_description (
Optional[str]) – A description of the alert.alert_name (
Optional[str]) – The name of the alert.alert_sensitivity_threshold (
Union[int,float,None]) – An integer from 0 to 100 specifying the alert sensitivity threshold.anomaly_detector_arn (
Optional[str]) – The ARN of the detector to which the alert is attached.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_lookoutmetrics import mixins as lookoutmetrics_mixins cfn_alert_mixin_props = lookoutmetrics_mixins.CfnAlertMixinProps( action=lookoutmetrics_mixins.CfnAlertPropsMixin.ActionProperty( lambda_configuration=lookoutmetrics_mixins.CfnAlertPropsMixin.LambdaConfigurationProperty( lambda_arn="lambdaArn", role_arn="roleArn" ), sns_configuration=lookoutmetrics_mixins.CfnAlertPropsMixin.SNSConfigurationProperty( role_arn="roleArn", sns_topic_arn="snsTopicArn" ) ), alert_description="alertDescription", alert_name="alertName", alert_sensitivity_threshold=123, anomaly_detector_arn="anomalyDetectorArn" )
Attributes
- action
Action that will be triggered when there is an alert.
- alert_description
A description of the alert.
- alert_name
The name of the alert.
- alert_sensitivity_threshold
An integer from 0 to 100 specifying the alert sensitivity threshold.
- anomaly_detector_arn
The ARN of the detector to which the alert is attached.