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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAlarmPromQLCriteria.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlarmPromQLCriteria.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerpendingPeriod()The duration, in seconds, that a contributor must be continuously breaching before it transitions to theALARMstate.Stringquery()The PromQL query that the alarm evaluates.IntegerrecoveryPeriod()The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to theOKstate.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AlarmPromQLCriteria.Builder>serializableBuilderClass()AlarmPromQLCriteria.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
query
public final 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.
- 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
public final Integer 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
public final Integer 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
public AlarmPromQLCriteria.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AlarmPromQLCriteria.Builder,AlarmPromQLCriteria>
-
builder
public static AlarmPromQLCriteria.Builder builder()
-
serializableBuilderClass
public static Class<? extends AlarmPromQLCriteria.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-