Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRecipientsItem(String recipientsItem) booleanReturn true if this MonitorNotificationRuleCondition object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A list of recipients to notify.getScope()Defines the condition under which the recipients are notified.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.recipients(List<String> recipients) voidsetRecipients(List<String> recipients) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_RECIPIENTS
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
-
Constructor Details
-
MonitorNotificationRuleCondition
public MonitorNotificationRuleCondition() -
MonitorNotificationRuleCondition
-
-
Method Details
-
recipients
-
addRecipientsItem
-
getRecipients
A list of recipients to notify. Uses the same format as the monitormessagefield. Must not start with an '@'. Cannot be used withconditional_recipients.- Returns:
- recipients
-
setRecipients
-
scope
-
getScope
Defines the condition under which the recipients are notified. Supported formats: - Monitor status condition usingtransition_type:<status>, for exampletransition_type:is_alert. - A single tag key:value pair, for exampleenv:prod.- Returns:
- scope
-
setScope
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- MonitorNotificationRuleCondition
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this MonitorNotificationRuleCondition object is equal to o. -
hashCode
public int hashCode() -
toString
-