Class SLOHistorySLIData

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SLOHistorySLIData extends Object
An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs.
  • Field Details

  • Constructor Details

    • SLOHistorySLIData

      public SLOHistorySLIData()
  • Method Details

    • errorBudgetRemaining

      public SLOHistorySLIData errorBudgetRemaining(Map<String,Double> errorBudgetRemaining)
    • putErrorBudgetRemainingItem

      public SLOHistorySLIData putErrorBudgetRemainingItem(String key, Double errorBudgetRemainingItem)
    • getErrorBudgetRemaining

      @Nullable public Map<String,Double> getErrorBudgetRemaining()
      A mapping of threshold timeframe to the remaining error budget.
      Returns:
      errorBudgetRemaining
    • setErrorBudgetRemaining

      public void setErrorBudgetRemaining(Map<String,Double> errorBudgetRemaining)
    • errors

    • addErrorsItem

      public SLOHistorySLIData addErrorsItem(SLOHistoryResponseErrorWithType errorsItem)
    • getErrors

      @Nullable public List<SLOHistoryResponseErrorWithType> getErrors()
      An array of error objects returned while querying the history data for the service level objective.
      Returns:
      errors
    • setErrors

      public void setErrors(List<SLOHistoryResponseErrorWithType> errors)
    • group

      public SLOHistorySLIData group(String group)
    • getGroup

      @Nullable public String getGroup()
      For groups in a grouped SLO, this is the group name.
      Returns:
      group
    • setGroup

      public void setGroup(String group)
    • history

      public SLOHistorySLIData history(List<List<Double>> history)
    • addHistoryItem

      public SLOHistorySLIData addHistoryItem(List<Double> historyItem)
    • getHistory

      @Nullable public List<List<Double>> getHistory()
      The state transition history for monitor or time-slice SLOs. It is represented as an array of pairs. Each pair is an array containing the timestamp of the transition as an integer in Unix epoch format in the first element, and the state as an integer in the second element. An integer value of 0 for state means uptime, 1 means downtime, and 2 means no data. Periods of no data count as uptime in time-slice SLOs, while for monitor SLOs, no data is counted either as uptime or downtime depending on monitor settings. See SLO documentation for detailed information.
      Returns:
      history
    • setHistory

      public void setHistory(List<List<Double>> history)
    • monitorModified

      public SLOHistorySLIData monitorModified(Long monitorModified)
    • getMonitorModified

      @Nullable public Long getMonitorModified()
      For monitor based SLOs, this is the last modified timestamp in epoch seconds of the monitor.
      Returns:
      monitorModified
    • setMonitorModified

      public void setMonitorModified(Long monitorModified)
    • monitorType

      public SLOHistorySLIData monitorType(String monitorType)
    • getMonitorType

      @Nullable public String getMonitorType()
      For monitor based SLOs, this describes the type of monitor.
      Returns:
      monitorType
    • setMonitorType

      public void setMonitorType(String monitorType)
    • name

      public SLOHistorySLIData name(String name)
    • getName

      @Nullable public String getName()
      For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name.
      Returns:
      name
    • setName

      public void setName(String name)
    • precision

      public SLOHistorySLIData precision(Map<String,Double> precision)
    • putPrecisionItem

      public SLOHistorySLIData putPrecisionItem(String key, Double precisionItem)
    • getPrecision

      @Nullable public Map<String,Double> getPrecision()
      A mapping of threshold timeframe to number of accurate decimals, regardless of the from && to timestamp.
      Returns:
      precision
    • setPrecision

      public void setPrecision(Map<String,Double> precision)
    • preview

      public SLOHistorySLIData preview(Boolean preview)
    • getPreview

      @Nullable public Boolean getPreview()
      For monitor based SLOs, when true this indicates that a replay is in progress to give an accurate uptime calculation.
      Returns:
      preview
    • setPreview

      public void setPreview(Boolean preview)
    • sliValue

      public SLOHistorySLIData sliValue(Double sliValue)
    • getSliValue

      @Nullable public Double getSliValue()
      The current SLI value of the SLO over the history window.
      Returns:
      sliValue
    • getSliValue_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Double> getSliValue_JsonNullable()
    • setSliValue_JsonNullable

      public void setSliValue_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> sliValue)
    • setSliValue

      public void setSliValue(Double sliValue)
    • spanPrecision

      public SLOHistorySLIData spanPrecision(Double spanPrecision)
    • getSpanPrecision

      @Nullable public Double getSpanPrecision()
      The amount of decimal places the SLI value is accurate to for the given from && to timestamp.
      Returns:
      spanPrecision
    • setSpanPrecision

      public void setSpanPrecision(Double spanPrecision)
    • uptime

      public SLOHistorySLIData uptime(Double uptime)
    • getUptime

      @Deprecated @Nullable public Double getUptime()
      Deprecated.
      Use sli_value instead.
      Returns:
      uptime
    • getUptime_JsonNullable

      @Deprecated public org.openapitools.jackson.nullable.JsonNullable<Double> getUptime_JsonNullable()
      Deprecated.
    • setUptime_JsonNullable

      public void setUptime_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> uptime)
    • setUptime

      public void setUptime(Double uptime)
    • putAdditionalProperty

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