Class: Aws::CloudWatch::Types::AlarmPromQLCriteria
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatch::Types::AlarmPromQLCriteria
- Defined in:
- gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#pending_period ⇒ Integer
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.
-
#recovery_period ⇒ Integer
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate.
Instance Attribute Details
#pending_period ⇒ Integer
The duration, in seconds, that a contributor must be continuously
breaching before it transitions to the ALARM state.
160 161 162 163 164 165 166 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 160 class AlarmPromQLCriteria < Struct.new( :query, :pending_period, :recovery_period) SENSITIVE = [] include Aws::Structure end |
#query ⇒ String
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.
160 161 162 163 164 165 166 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 160 class AlarmPromQLCriteria < Struct.new( :query, :pending_period, :recovery_period) SENSITIVE = [] include Aws::Structure end |
#recovery_period ⇒ Integer
The duration, in seconds, that a contributor must continuously not
be breaching before it transitions back to the OK state.
160 161 162 163 164 165 166 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 160 class AlarmPromQLCriteria < Struct.new( :query, :pending_period, :recovery_period) SENSITIVE = [] include Aws::Structure end |