Class MonitorNotificationRuleCondition

java.lang.Object
com.datadog.api.client.v2.model.MonitorNotificationRuleCondition

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MonitorNotificationRuleCondition extends Object
A conditional recipient rule composed of a scope (the matching condition) and recipients (who to notify when it matches).
  • Field Details

  • Constructor Details

    • MonitorNotificationRuleCondition

      public MonitorNotificationRuleCondition()
    • MonitorNotificationRuleCondition

      public MonitorNotificationRuleCondition(List<String> recipients, String scope)
  • Method Details

    • recipients

      public MonitorNotificationRuleCondition recipients(List<String> recipients)
    • addRecipientsItem

      public MonitorNotificationRuleCondition addRecipientsItem(String recipientsItem)
    • getRecipients

      public List<String> getRecipients()
      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.
      Returns:
      recipients
    • setRecipients

      public void setRecipients(List<String> recipients)
    • scope

    • getScope

      public String getScope()
      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 .
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • putAdditionalProperty

      public MonitorNotificationRuleCondition putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      MonitorNotificationRuleCondition
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this MonitorNotificationRuleCondition object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object