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
-
#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.
250 251 252 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 250 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
248 249 250 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 248 def notification_rate_limit @notification_rate_limit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
255 256 257 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 255 def update!(**args) @notification_rate_limit = args[:notification_rate_limit] if args.key?(:notification_rate_limit) end |