Class SLOTimeSliceCondition

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SLOTimeSliceCondition extends Object
The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator, and 3. the threshold. Optionally, a fourth part, the query interval, can be provided.
  • Field Details

  • Constructor Details

  • Method Details

    • comparator

      public SLOTimeSliceCondition comparator(SLOTimeSliceComparator comparator)
    • getComparator

      public SLOTimeSliceComparator getComparator()
      The comparator used to compare the SLI value to the threshold.
      Returns:
      comparator
    • setComparator

      public void setComparator(SLOTimeSliceComparator comparator)
    • query

    • getQuery

      public SLOTimeSliceQuery getQuery()
      The queries and formula used to calculate the SLI value.
      Returns:
      query
    • setQuery

      public void setQuery(SLOTimeSliceQuery query)
    • queryIntervalSeconds

      public SLOTimeSliceCondition queryIntervalSeconds(SLOTimeSliceInterval queryIntervalSeconds)
    • getQueryIntervalSeconds

      @Nullable public SLOTimeSliceInterval getQueryIntervalSeconds()
      The interval used when querying data, which defines the size of a time slice. Two values are allowed: 60 (1 minute) and 300 (5 minutes). If not provided, the value defaults to 300 (5 minutes).
      Returns:
      queryIntervalSeconds
    • setQueryIntervalSeconds

      public void setQueryIntervalSeconds(SLOTimeSliceInterval queryIntervalSeconds)
    • threshold

      public SLOTimeSliceCondition threshold(Double threshold)
    • getThreshold

      public Double getThreshold()
      The threshold value to which each SLI value will be compared.
      Returns:
      threshold
    • setThreshold

      public void setThreshold(Double threshold)
    • putAdditionalProperty

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