Class: Google::Apis::MonitoringV3::Trigger
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::MonitoringV3::Trigger
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v3/classes.rb,
 generated/google/apis/monitoring_v3/representations.rb,
 generated/google/apis/monitoring_v3/representations.rb
Overview
Specifies how many time series must fail a predicate to trigger a condition.
If not specified, then a count: 1 trigger is used.
Instance Attribute Summary collapse
- 
  
    
      #count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The absolute number of time series that must fail the predicate for the condition to be triggered. 
- 
  
    
      #percent  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The percentage of time series that must fail the predicate for the condition to be triggered. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Trigger 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Trigger. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Trigger
Returns a new instance of Trigger
| 2474 2475 2476 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 2474 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#count ⇒ Fixnum
The absolute number of time series that must fail the predicate for the
condition to be triggered.
Corresponds to the JSON property count
| 2466 2467 2468 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 2466 def count @count end | 
#percent ⇒ Float
The percentage of time series that must fail the predicate for the condition
to be triggered.
Corresponds to the JSON property percent
| 2472 2473 2474 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 2472 def percent @percent end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2479 2480 2481 2482 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 2479 def update!(**args) @count = args[:count] if args.key?(:count) @percent = args[:percent] if args.key?(:percent) end |