NoDataProperty Struct Added in v2.277.0
How the alert behaves when an evaluation returns no data.
If omitted, the alert reports NODATA.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const noDataProperty: cloudwatch.CfnAlert.NoDataProperty = {
treatAs: 'treatAs',
};
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_cloudwatch as cloudwatch
no_data_property = cloudwatch.CfnAlert.NoDataProperty(
treat_as="treatAs"
)
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.cloudwatch.*;
NoDataProperty noDataProperty = NoDataProperty.builder()
.treatAs("treatAs")
.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.CloudWatch;
var noDataProperty = new NoDataProperty {
TreatAs = "treatAs"
};
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"
noDataProperty := &NoDataProperty{
TreatAs: jsii.String("treatAs"),
}
Properties
The state to report when an evaluation returns no data.
Valid values: OK, WARNING, CRITICAL, NODATA.