# TelemetryRuleProperty

A rule that queries telemetry, evaluates the result against a condition, and sets how missing data is handled.

- 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 telemetryRuleProperty: cloudwatch.CfnAlert.TelemetryRuleProperty = {
  condition: {
    comparator: 'comparator',
    criticalThreshold: 123,
    thresholdField: 'thresholdField',
    thresholdMode: 'thresholdMode',
    warningThreshold: 123,
  },
  evaluation: {
    intervalSeconds: 123,

    // the properties below are optional
    pendingDurationSeconds: 123,
    recoveryDurationSeconds: 123,
  },
  query: {
    expression: 'expression',
    language: 'language',
  },

  // the properties below are optional
  noData: {
    treatAs: 'treatAs',
  },
};
```

## Properties

- `condition`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlert.ConditionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlert.ConditionProperty.html) (required) — The thresholds that set the alert's state.

  Specify at least one of WarningThreshold and CriticalThreshold.

- `evaluation`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlert.EvaluationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlert.EvaluationProperty.html) (required) — How often the alert is evaluated, and how long a change must last before the state changes.

- `noData`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlert.NoDataProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlert.NoDataProperty.html) — How the alert behaves when an evaluation returns no data.

  If omitted, the alert reports NODATA.

- `query`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlert.QueryProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlert.QueryProperty.html) (required) — The query the alert runs, and the language it is written in.
