Class RuleAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RuleAttributes extends Object
Details of a rule.
  • Field Details

  • Constructor Details

    • RuleAttributes

      public RuleAttributes()
  • Method Details

    • category

      public RuleAttributes category(String category)
    • getCategory

      @Deprecated @Nullable public String getCategory()
      Deprecated.
      The scorecard name to which this rule must belong.
      Returns:
      category
    • setCategory

      @Deprecated public void setCategory(String category)
      Deprecated.
    • createdAt

      public RuleAttributes createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Creation time of the rule outcome.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • custom

      public RuleAttributes custom(Boolean custom)
    • getCustom

      @Nullable public Boolean getCustom()
      Defines if the rule is a custom rule.
      Returns:
      custom
    • setCustom

      public void setCustom(Boolean custom)
    • description

      public RuleAttributes description(String description)
    • getDescription

      @Nullable public String getDescription()
      Explanation of the rule.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • enabled

      public RuleAttributes enabled(Boolean enabled)
    • getEnabled

      @Nullable public Boolean getEnabled()
      If enabled, the rule is calculated as part of the score.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • level

      public RuleAttributes level(Integer level)
    • getLevel

      @Nullable public Integer getLevel()
      The maturity level of the rule (1, 2, or 3). minimum: 1 maximum: 3
      Returns:
      level
    • setLevel

      public void setLevel(Integer level)
    • modifiedAt

      public RuleAttributes modifiedAt(OffsetDateTime modifiedAt)
    • getModifiedAt

      @Nullable public OffsetDateTime getModifiedAt()
      Time of the last rule outcome modification.
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(OffsetDateTime modifiedAt)
    • name

      public RuleAttributes name(String name)
    • getName

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

      public void setName(String name)
    • owner

      public RuleAttributes owner(String owner)
    • getOwner

      @Nullable public String getOwner()
      Owner of the rule.
      Returns:
      owner
    • setOwner

      public void setOwner(String owner)
    • scopeQuery

      public RuleAttributes scopeQuery(String scopeQuery)
    • getScopeQuery

      @Nullable public String getScopeQuery()
      A query to filter which entities this rule applies to.
      Returns:
      scopeQuery
    • setScopeQuery

      public void setScopeQuery(String scopeQuery)
    • scorecardName

      public RuleAttributes scorecardName(String scorecardName)
    • getScorecardName

      @Nullable public String getScorecardName()
      The scorecard name to which this rule must belong.
      Returns:
      scorecardName
    • setScorecardName

      public void setScorecardName(String scorecardName)
    • putAdditionalProperty

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