Class: DatadogAPIClient::V2::MonitorNotificationRuleCondition

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb

Overview

A conditional recipient rule composed of a scope (the matching condition) and recipients (who to notify when it matches).

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



33
34
35
# File 'lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb', line 33

def additional_properties
  @additional_properties
end

#recipientsObject

A list of recipients to notify. Uses the same format as the monitor message field. Must not start with an '@'. Cannot be used with conditional_recipients.



26
27
28
# File 'lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb', line 26

def recipients
  @recipients
end

#scopeObject

Defines the condition under which the recipients are notified. Supported formats:

  • Monitor status condition using transition_type:<status>, for example transition_type:is_alert.
  • A single tag key:value pair, for example env:prod.


31
32
33
# File 'lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb', line 31

def scope
  @scope
end