class
Amazonite::CloudWatch::AlarmPromQLCriteria
- Amazonite::CloudWatch::AlarmPromQLCriteria
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch/alarm_prom_ql_criteria.crConstructors
- .new(pull : JSON::PullParser)
- .new(query : String, pending_period : Int32 | Nil = nil, recovery_period : Int32 | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#pending_period : Int32 | Nil
The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate. -
#pending_period=(pending_period : Int32 | Nil)
The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate. -
#query : String
The PromQL query that the alarm evaluates.
-
#query=(query : String)
The PromQL query that the alarm evaluates.
-
#recovery_period : Int32 | Nil
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate. -
#recovery_period=(recovery_period : Int32 | Nil)
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate. - #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The duration, in seconds, that a contributor must be continuously breaching before it
transitions to the ALARM state.
The duration, in seconds, that a contributor must be continuously breaching before it
transitions to the ALARM state.
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.
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.
The duration, in seconds, that a contributor must continuously not be breaching before it
transitions back to the OK state.
The duration, in seconds, that a contributor must continuously not be breaching before it
transitions back to the OK state.