Package com.datadog.api.client.v2.model
Class NotificationRule
java.lang.Object
com.datadog.api.client.v2.model.NotificationRule
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class NotificationRule
extends Object
Notification rules allow full control over notifications generated by the various Datadog
security products. They allow users to define the conditions under which a notification should be
generated (based on rule severities, rule types, rule tags, and so on), and the targets to
notify. A notification rule is composed of a rule ID, a rule type, and the rule attributes. All
fields are required.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNotificationRule(NotificationRuleAttributes attributes, String id, NotificationRulesType type) -
Method Summary
Modifier and TypeMethodDescriptionattributes(NotificationRuleAttributes attributes) booleanReturn true if this NotificationRule object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes of the notification rule.getId()The ID of a notification rule.getType()The rule type associated to notification rules.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(NotificationRuleAttributes attributes) voidvoidsetType(NotificationRulesType type) toString()type(NotificationRulesType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
NotificationRule
public NotificationRule() -
NotificationRule
public NotificationRule(NotificationRuleAttributes attributes, String id, NotificationRulesType type)
-
-
Method Details
-
attributes
-
getAttributes
Attributes of the notification rule.- Returns:
- attributes
-
setAttributes
-
id
-
getId
The ID of a notification rule.- Returns:
- id
-
setId
-
type
-
getType
The rule type associated to notification rules.- Returns:
- type
-
setType
-
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:
- NotificationRule
-
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 NotificationRule object is equal to o. -
hashCode
public int hashCode() -
toString
-