Class TagRuleScoreAttributes

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

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

  • Constructor Details

    • TagRuleScoreAttributes

      public TagRuleScoreAttributes()
    • TagRuleScoreAttributes

      public TagRuleScoreAttributes(Double score, Long tsEnd, Long tsStart, Long version)
  • Method Details

    • score

      public TagRuleScoreAttributes score(Double score)
    • getScore

      @Nullable public Double getScore()
      The compliance score for the rule over the requested time window, as a percentage between 0 and 100. null indicates that no relevant telemetry was found.
      Returns:
      score
    • setScore

      public void setScore(Double score)
    • tsEnd

      public TagRuleScoreAttributes tsEnd(Long tsEnd)
    • getTsEnd

      public Long getTsEnd()
      End of the time window the score was computed over, as a Unix timestamp in milliseconds.
      Returns:
      tsEnd
    • setTsEnd

      public void setTsEnd(Long tsEnd)
    • tsStart

      public TagRuleScoreAttributes tsStart(Long tsStart)
    • getTsStart

      public Long getTsStart()
      Start of the time window the score was computed over, as a Unix timestamp in milliseconds.
      Returns:
      tsStart
    • setTsStart

      public void setTsStart(Long tsStart)
    • version

      public TagRuleScoreAttributes version(Long version)
    • getVersion

      public Long getVersion()
      The version of the tag rule that the score was computed against.
      Returns:
      version
    • setVersion

      public void setVersion(Long version)
    • putAdditionalProperty

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