Class ServiceLevelObjectiveQuery

java.lang.Object
com.datadog.api.client.v1.model.ServiceLevelObjectiveQuery

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjectiveQuery extends Object
A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator to be used because this will sum up all request counts instead of averaging them, or taking the max or min of all of those requests.
  • Field Details

  • Constructor Details

    • ServiceLevelObjectiveQuery

      public ServiceLevelObjectiveQuery()
    • ServiceLevelObjectiveQuery

      public ServiceLevelObjectiveQuery(String denominator, String numerator)
  • Method Details

    • denominator

      public ServiceLevelObjectiveQuery denominator(String denominator)
    • getDenominator

      public String getDenominator()
      A Datadog metric query for total (valid) events.
      Returns:
      denominator
    • setDenominator

      public void setDenominator(String denominator)
    • numerator

      public ServiceLevelObjectiveQuery numerator(String numerator)
    • getNumerator

      public String getNumerator()
      A Datadog metric query for good events.
      Returns:
      numerator
    • setNumerator

      public void setNumerator(String numerator)
    • putAdditionalProperty

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