Class SearchSLOThreshold

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SearchSLOThreshold extends Object
SLO thresholds (target and optionally warning) for a single time window.
  • Field Details

  • Constructor Details

    • SearchSLOThreshold

      public SearchSLOThreshold()
    • SearchSLOThreshold

      public SearchSLOThreshold(Double target, SearchSLOTimeframe timeframe)
  • Method Details

    • target

      public SearchSLOThreshold target(Double target)
    • getTarget

      public Double getTarget()
      The target value for the service level indicator within the corresponding timeframe.
      Returns:
      target
    • setTarget

      public void setTarget(Double target)
    • targetDisplay

      public SearchSLOThreshold targetDisplay(String targetDisplay)
    • getTargetDisplay

      @Nullable public String getTargetDisplay()
      A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (for example 98.00).

      Always included in service level objective responses. Ignored in create/update requests.

      Returns:
      targetDisplay
    • setTargetDisplay

      public void setTargetDisplay(String targetDisplay)
    • timeframe

      public SearchSLOThreshold timeframe(SearchSLOTimeframe timeframe)
    • getTimeframe

      public SearchSLOTimeframe getTimeframe()
      The SLO time window options.
      Returns:
      timeframe
    • setTimeframe

      public void setTimeframe(SearchSLOTimeframe timeframe)
    • warning

      public SearchSLOThreshold warning(Double warning)
    • getWarning

      @Nullable public Double getWarning()
      The warning value for the service level objective.
      Returns:
      warning
    • getWarning_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Double> getWarning_JsonNullable()
    • setWarning_JsonNullable

      public void setWarning_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> warning)
    • setWarning

      public void setWarning(Double warning)
    • warningDisplay

      public SearchSLOThreshold warningDisplay(String warningDisplay)
    • getWarningDisplay

      @Nullable public String getWarningDisplay()
      A string representation of the warning target (see the description of the target_display field for details).

      Included in service level objective responses if a warning target exists. Ignored in create/update requests.

      Returns:
      warningDisplay
    • getWarningDisplay_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getWarningDisplay_JsonNullable()
    • setWarningDisplay_JsonNullable

      public void setWarningDisplay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> warningDisplay)
    • setWarningDisplay

      public void setWarningDisplay(String warningDisplay)
    • putAdditionalProperty

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