Class: Google::Apis::MonitoringV3::NotificationRateLimit

Inherits:
Object
  • Object
show all
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 the rate of notifications sent to this alert policy's notification channels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NotificationRateLimit

Returns a new instance of NotificationRateLimit.



3041
3042
3043
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3041

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#periodString

Not more than one notification per period. Corresponds to the JSON property period

Returns:

  • (String)


3039
3040
3041
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3039

def period
  @period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3046
3047
3048
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3046

def update!(**args)
  @period = args[:period] if args.key?(:period)
end