Interface AlarmPromQLCriteria.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AlarmPromQLCriteria.Builder,,AlarmPromQLCriteria> SdkBuilder<AlarmPromQLCriteria.Builder,,AlarmPromQLCriteria> SdkPojo
- Enclosing class:
AlarmPromQLCriteria
@Mutable
@NotThreadSafe
public static interface AlarmPromQLCriteria.Builder
extends SdkPojo, CopyableBuilder<AlarmPromQLCriteria.Builder,AlarmPromQLCriteria>
-
Method Summary
Modifier and TypeMethodDescriptionpendingPeriod(Integer pendingPeriod) The duration, in seconds, that a contributor must be continuously breaching before it transitions to theALARMstate.The PromQL query that the alarm evaluates.recoveryPeriod(Integer recoveryPeriod) The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to theOKstate.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
query
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.
- Parameters:
query- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingPeriod
The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate.- Parameters:
pendingPeriod- The duration, in seconds, that a contributor must be continuously breaching before it transitions to theALARMstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recoveryPeriod
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate.- Parameters:
recoveryPeriod- The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to theOKstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-