Interface CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.Jsii$Proxy
- Enclosing class:
CfnAlarmPropsMixin
@Stability(Stable)
public static interface CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty
extends software.amazon.jsii.JsiiSerializable
Contains the configuration that determines how a PromQL alarm evaluates its contributors, including the query to run and the durations that define when contributors transition between states.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.*;
AlarmPromQLCriteriaProperty alarmPromQLCriteriaProperty = AlarmPromQLCriteriaProperty.builder()
.pendingPeriod(123)
.query("query")
.recoveryPeriod(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAlarmPropsMixin.AlarmPromQLCriteriaPropertystatic final classAn implementation forCfnAlarmPropsMixin.AlarmPromQLCriteriaProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe duration, in seconds, that a contributor must be continuously breaching before it transitions to theALARMstate.default StringgetQuery()The PromQL query that the alarm evaluates.default NumberThe duration, in seconds, that a contributor must continuously not be breaching before it transitions back to theOKstate.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPendingPeriod
The duration, in seconds, that a contributor must be continuously breaching before it transitions to theALARMstate.- See Also:
-
getQuery
The PromQL query that the alarm evaluates.The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.
- See Also:
-
getRecoveryPeriod
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to theOKstate.- See Also:
-
builder
-