Class: Google::Apis::MonitoringV3::AlertStrategy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MonitoringV3::AlertStrategy
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb 
Overview
Control over how the notification channels in notification_channels are notified when this alert fires.
Instance Attribute Summary collapse
- 
  
    
      #auto_close  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
If an alert policy that was active has no data for this long, any open incidents will close Corresponds to the JSON property
autoClose. - 
  
    
      #notification_channel_strategy  ⇒ Array<Google::Apis::MonitoringV3::NotificationChannelStrategy> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Control how notifications will be sent out, on a per-channel basis.
 - 
  
    
      #notification_rate_limit  ⇒ Google::Apis::MonitoringV3::NotificationRateLimit 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Control over the rate of notifications sent to this alert policy's notification channels.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AlertStrategy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AlertStrategy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ AlertStrategy
Returns a new instance of AlertStrategy.
      280 281 282  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 280 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#auto_close ⇒ String
If an alert policy that was active has no data for this long, any open
incidents will close
Corresponds to the JSON property autoClose
      267 268 269  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 267 def auto_close @auto_close end  | 
  
#notification_channel_strategy ⇒ Array<Google::Apis::MonitoringV3::NotificationChannelStrategy>
Control how notifications will be sent out, on a per-channel basis.
Corresponds to the JSON property notificationChannelStrategy
      272 273 274  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 272 def notification_channel_strategy @notification_channel_strategy end  | 
  
#notification_rate_limit ⇒ Google::Apis::MonitoringV3::NotificationRateLimit
Control over the rate of notifications sent to this alert policy's
notification channels.
Corresponds to the JSON property notificationRateLimit
      278 279 280  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 278 def notification_rate_limit @notification_rate_limit end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      285 286 287 288 289  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 285 def update!(**args) @auto_close = args[:auto_close] if args.key?(:auto_close) @notification_channel_strategy = args[:notification_channel_strategy] if args.key?(:notification_channel_strategy) @notification_rate_limit = args[:notification_rate_limit] if args.key?(:notification_rate_limit) end  |