class Google::Apis::MonitoringV3::Trigger

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

Attributes

count[RW]

The absolute number of time series that must fail the predicate for the condition to be triggered. Corresponds to the JSON property `count` @return [Fixnum]

percent[RW]

The percentage of time series that must fail the predicate for the condition to be triggered. Corresponds to the JSON property `percent` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 4386
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 4391
def update!(**args)
  @count = args[:count] if args.key?(:count)
  @percent = args[:percent] if args.key?(:percent)
end