Class SearchSLOQuery

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SearchSLOQuery extends Object
A metric-based SLO. Required if type is metric. 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

    • SearchSLOQuery

      public SearchSLOQuery()
  • Method Details

    • denominator

      public SearchSLOQuery denominator(String denominator)
    • getDenominator

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

      public void setDenominator(String denominator)
    • metrics

      public SearchSLOQuery metrics(List<String> metrics)
    • addMetricsItem

      public SearchSLOQuery addMetricsItem(String metricsItem)
    • getMetrics

      @Nullable public List<String> getMetrics()
      Metric names used in the query's numerator and denominator. This field will return null and will be implemented in the next version of this endpoint.
      Returns:
      metrics
    • getMetrics_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<String>> getMetrics_JsonNullable()
    • setMetrics_JsonNullable

      public void setMetrics_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> metrics)
    • setMetrics

      public void setMetrics(List<String> metrics)
    • numerator

      public SearchSLOQuery numerator(String numerator)
    • getNumerator

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

      public void setNumerator(String numerator)
    • putAdditionalProperty

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