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 Details

  • Constructor Details

  • Method Details

    • createdAt

      public NotificationRuleAttributes createdAt(Long createdAt)
    • getCreatedAt

      public Long getCreatedAt()
      Date as Unix timestamp in milliseconds.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(Long createdAt)
    • createdBy

      public NotificationRuleAttributes createdBy(RuleUser createdBy)
    • getCreatedBy

      public RuleUser getCreatedBy()
      User creating or modifying a rule.
      Returns:
      createdBy
    • setCreatedBy

      public void setCreatedBy(RuleUser createdBy)
    • enabled

      public NotificationRuleAttributes enabled(Boolean enabled)
    • getEnabled

      public Boolean getEnabled()
      Field used to enable or disable the rule.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • modifiedAt

      public NotificationRuleAttributes modifiedAt(Long modifiedAt)
    • getModifiedAt

      public Long getModifiedAt()
      Date as Unix timestamp in milliseconds.
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(Long modifiedAt)
    • modifiedBy

      public NotificationRuleAttributes modifiedBy(RuleUser modifiedBy)
    • getModifiedBy

      public RuleUser getModifiedBy()
      User creating or modifying a rule.
      Returns:
      modifiedBy
    • setModifiedBy

      public void setModifiedBy(RuleUser modifiedBy)
    • name

      public NotificationRuleAttributes name(String name)
    • getName

      public String getName()
      Name of the notification rule.
      Returns:
      name
    • setName

      public void setName(String name)
    • selectors

      public NotificationRuleAttributes selectors(Selectors selectors)
    • getSelectors

      public 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

      public void setSelectors(Selectors selectors)
    • targets

      public NotificationRuleAttributes targets(List<String> targets)
    • addTargetsItem

      public NotificationRuleAttributes addTargetsItem(String targetsItem)
    • getTargets

      public List<String> 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

      public void setTargets(List<String> targets)
    • timeAggregation

      public NotificationRuleAttributes timeAggregation(Long timeAggregation)
    • getTimeAggregation

      @Nullable public Long 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

      public void setTimeAggregation(Long timeAggregation)
    • version

      public NotificationRuleAttributes version(Long version)
    • getVersion

      public Long getVersion()
      Version of the notification rule. It is updated when the rule is modified.
      Returns:
      version
    • setVersion

      public void setVersion(Long version)
    • putAdditionalProperty

      public NotificationRuleAttributes 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:
      NotificationRuleAttributes
    • 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 NotificationRuleAttributes 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