Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::AlertPolicy::Condition::Trigger (v1.1.0)

Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::AlertPolicy::Condition::Trigger.

Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a {count: 1} trigger is used.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#count

def count() -> ::Integer
Returns
  • (::Integer) — The absolute number of time series that must fail the predicate for the condition to be triggered.

#count=

def count=(value) -> ::Integer
Parameter
  • value (::Integer) — The absolute number of time series that must fail the predicate for the condition to be triggered.
Returns
  • (::Integer) — The absolute number of time series that must fail the predicate for the condition to be triggered.

#percent

def percent() -> ::Float
Returns
  • (::Float) — The percentage of time series that must fail the predicate for the condition to be triggered.

#percent=

def percent=(value) -> ::Float
Parameter
  • value (::Float) — The percentage of time series that must fail the predicate for the condition to be triggered.
Returns
  • (::Float) — The percentage of time series that must fail the predicate for the condition to be triggered.