Class AlarmPromQLCriteria
java.lang.Object
software.amazon.awssdk.services.cloudwatch.model.AlarmPromQLCriteria
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AlarmPromQLCriteria.Builder,AlarmPromQLCriteria>
@Generated("software.amazon.awssdk:codegen")
public final class AlarmPromQLCriteria
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<AlarmPromQLCriteria.Builder,AlarmPromQLCriteria>
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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AlarmPromQLCriteria.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe duration, in seconds, that a contributor must be continuously breaching before it transitions to theALARMstate.final Stringquery()The PromQL query that the alarm evaluates.final IntegerThe duration, in seconds, that a contributor must continuously not be breaching before it transitions back to theOKstate.static Class<? extends AlarmPromQLCriteria.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
- Returns:
- 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.
-
pendingPeriod
The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate.- Returns:
- The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate.
-
recoveryPeriod
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate.- Returns:
- The duration, in seconds, that a contributor must continuously not be breaching before it transitions
back to the
OKstate.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AlarmPromQLCriteria.Builder,AlarmPromQLCriteria>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-