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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AlarmPromQLCriteria.BuilderpendingPeriod(Integer pendingPeriod)The duration, in seconds, that a contributor must be continuously breaching before it transitions to theALARMstate.AlarmPromQLCriteria.Builderquery(String query)The PromQL query that the alarm evaluates.AlarmPromQLCriteria.BuilderrecoveryPeriod(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
query
AlarmPromQLCriteria.Builder query(String 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
AlarmPromQLCriteria.Builder pendingPeriod(Integer 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
AlarmPromQLCriteria.Builder recoveryPeriod(Integer 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.
-
-