class Amazonite::CloudWatch::AlarmPromQLCriteria

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

Defined in:

cloudwatch/alarm_prom_ql_criteria.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(query : String, pending_period : Int32 | Nil = nil, recovery_period : Int32 | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def pending_period : Int32 | Nil #

The duration, in seconds, that a contributor must be continuously breaching before it transitions to the ALARM state.


[View source]
def pending_period=(pending_period : Int32 | Nil) #

The duration, in seconds, that a contributor must be continuously breaching before it transitions to the ALARM state.


[View source]
def 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.


[View source]
def query=(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.


[View source]
def recovery_period : Int32 | Nil #

The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the OK state.


[View source]
def recovery_period=(recovery_period : Int32 | Nil) #

The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the OK state.


[View source]
def validate! : Nil #

[View source]