Skip to content
v2.277.0

EvaluationProperty Struct Added in v2.277.0 ​

How often the alert is evaluated, and how long a change must last before the state changes.

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 evaluationProperty: cloudwatch.CfnAlert.EvaluationProperty = {
  intervalSeconds: 123,

  // the properties below are optional
  pendingDurationSeconds: 123,
  recoveryDurationSeconds: 123,
};
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

evaluation_property = cloudwatch.CfnAlert.EvaluationProperty(
    interval_seconds=123,

    # the properties below are optional
    pending_duration_seconds=123,
    recovery_duration_seconds=123
)
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.*;

EvaluationProperty evaluationProperty = EvaluationProperty.builder()
        .intervalSeconds(123)

        // the properties below are optional
        .pendingDurationSeconds(123)
        .recoveryDurationSeconds(123)
        .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 evaluationProperty = new EvaluationProperty {
    IntervalSeconds = 123,

    // the properties below are optional
    PendingDurationSeconds = 123,
    RecoveryDurationSeconds = 123
};
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"

evaluationProperty := &EvaluationProperty{
	IntervalSeconds: jsii.Number(123),

	// the properties below are optional
	PendingDurationSeconds: jsii.Number(123),
	RecoveryDurationSeconds: jsii.Number(123),
}

Properties ​

intervalSecondsnumberinterval_secondsint | floatintervalSecondsNumberIntervalSecondsdoubleIntervalSeconds*float64required#
The time between evaluations, in seconds.

Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.

pendingDurationSecondsoptionalnumberpending_duration_secondsoptionalint | floatpendingDurationSecondsoptionalNumberPendingDurationSecondsoptionaldoublePendingDurationSecondsoptional*float64#
How long a threshold breach must last before the alert changes state, in seconds.

Must be a multiple of IntervalSeconds. 0 changes state immediately.

recoveryDurationSecondsoptionalnumberrecovery_duration_secondsoptionalint | floatrecoveryDurationSecondsoptionalNumberRecoveryDurationSecondsoptionaldoubleRecoveryDurationSecondsoptional*float64#
How long the result must stay within its thresholds before the alert returns to OK, in seconds.

Must be a multiple of IntervalSeconds. 0 returns to OK immediately.