Package com.datadog.api.client.v2.model
Class NotificationRuleAttributes
java.lang.Object
com.datadog.api.client.v2.model.NotificationRuleAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class NotificationRuleAttributes
extends Object
Attributes of the notification rule.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTargetsItem(String targetsItem) booleanReturn true if this NotificationRuleAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Date as Unix timestamp in milliseconds.User creating or modifying a rule.Field used to enable or disable the rule.Date as Unix timestamp in milliseconds.User creating or modifying a rule.getName()Name of the notification rule.Selectors are used to filter security issues for which notifications should be generated.List of recipients to notify when a notification rule is triggered.Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation.Version of the notification rule.inthashCode()modifiedAt(Long modifiedAt) modifiedBy(RuleUser modifiedBy) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(Long createdAt) voidsetCreatedBy(RuleUser createdBy) voidsetEnabled(Boolean enabled) voidsetModifiedAt(Long modifiedAt) voidsetModifiedBy(RuleUser modifiedBy) voidvoidsetSelectors(Selectors selectors) voidsetTargets(List<String> targets) voidsetTimeAggregation(Long timeAggregation) voidsetVersion(Long version) timeAggregation(Long timeAggregation) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATED_BY
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_MODIFIED_AT
- See Also:
-
JSON_PROPERTY_MODIFIED_BY
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SELECTORS
- See Also:
-
JSON_PROPERTY_TARGETS
- See Also:
-
JSON_PROPERTY_TIME_AGGREGATION
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
NotificationRuleAttributes
public NotificationRuleAttributes() -
NotificationRuleAttributes
-
-
Method Details
-
createdAt
-
getCreatedAt
Date as Unix timestamp in milliseconds.- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
User creating or modifying a rule.- Returns:
- createdBy
-
setCreatedBy
-
enabled
-
getEnabled
Field used to enable or disable the rule.- Returns:
- enabled
-
setEnabled
-
modifiedAt
-
getModifiedAt
Date as Unix timestamp in milliseconds.- Returns:
- modifiedAt
-
setModifiedAt
-
modifiedBy
-
getModifiedBy
User creating or modifying a rule.- Returns:
- modifiedBy
-
setModifiedBy
-
name
-
getName
Name of the notification rule.- Returns:
- name
-
setName
-
selectors
-
getSelectors
Selectors are used to filter security issues for which notifications should be generated. Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. Only the trigger_source field is required.- Returns:
- selectors
-
setSelectors
-
targets
-
addTargetsItem
-
getTargets
List of recipients to notify when a notification rule is triggered. Many different target types are supported, such as email addresses, Slack channels, and PagerDuty services. The appropriate integrations need to be properly configured to send notifications to the specified targets.- Returns:
- targets
-
setTargets
-
timeAggregation
-
getTimeAggregation
Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation. Results are aggregated over a selected time frame using a rolling window, which updates with each new evaluation. Notifications are only sent for new issues discovered during the window. Time aggregation is only available for vulnerability-based notification rules. When omitted or set to 0, no aggregation is done.- Returns:
- timeAggregation
-
setTimeAggregation
-
version
-
getVersion
Version of the notification rule. It is updated when the rule is modified.- Returns:
- version
-
setVersion
-
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:
- NotificationRuleAttributes
-
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 NotificationRuleAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-