Class CfnAlertProps
Properties for defining a CfnAlert.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.LookoutMetrics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAlertProps : ICfnAlertProps
Syntax (vb)
Public Class CfnAlertProps Implements ICfnAlertProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html
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.LookoutMetrics;
var cfnAlertProps = new CfnAlertProps {
Action = new ActionProperty {
LambdaConfiguration = new LambdaConfigurationProperty {
LambdaArn = "lambdaArn",
RoleArn = "roleArn"
},
SnsConfiguration = new SNSConfigurationProperty {
RoleArn = "roleArn",
SnsTopicArn = "snsTopicArn"
}
},
AlertSensitivityThreshold = 123,
AnomalyDetectorArn = "anomalyDetectorArn",
// the properties below are optional
AlertDescription = "alertDescription",
AlertName = "alertName"
};
Synopsis
Constructors
| CfnAlertProps() | Properties for defining a |
Properties
| Action | Action that will be triggered when there is an alert. |
| AlertDescription | A description of the alert. |
| AlertName | The name of the alert. |
| AlertSensitivityThreshold | An integer from 0 to 100 specifying the alert sensitivity threshold. |
| AnomalyDetectorArn | The ARN of the detector to which the alert is attached. |
Constructors
CfnAlertProps()
Properties for defining a CfnAlert.
public CfnAlertProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html
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.LookoutMetrics;
var cfnAlertProps = new CfnAlertProps {
Action = new ActionProperty {
LambdaConfiguration = new LambdaConfigurationProperty {
LambdaArn = "lambdaArn",
RoleArn = "roleArn"
},
SnsConfiguration = new SNSConfigurationProperty {
RoleArn = "roleArn",
SnsTopicArn = "snsTopicArn"
}
},
AlertSensitivityThreshold = 123,
AnomalyDetectorArn = "anomalyDetectorArn",
// the properties below are optional
AlertDescription = "alertDescription",
AlertName = "alertName"
};
Properties
Action
Action that will be triggered when there is an alert.
public object Action { get; set; }
Property Value
Remarks
AlertDescription
A description of the alert.
public string? AlertDescription { get; set; }
Property Value
Remarks
AlertName
The name of the alert.
public string? AlertName { get; set; }
Property Value
Remarks
AlertSensitivityThreshold
An integer from 0 to 100 specifying the alert sensitivity threshold.
public double AlertSensitivityThreshold { get; set; }
Property Value
Remarks
AnomalyDetectorArn
The ARN of the detector to which the alert is attached.
public string AnomalyDetectorArn { get; set; }