# NoDataProperty

How the alert behaves when an evaluation returns no data.

If omitted, the alert reports NODATA.

- Source: Generated code
- Type last changed: v2.277.0 · 13 Nov 2026

## 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',
};
```

## Properties

- `treatAs`: string (required) — The state to report when an evaluation returns no data.

  Valid values: OK, WARNING, CRITICAL, NODATA.
