Class SyntheticsUptime

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SyntheticsUptime extends Object
Object containing the uptime information.
  • Field Details

  • Constructor Details

    • SyntheticsUptime

      public SyntheticsUptime()
  • Method Details

    • errors

    • addErrorsItem

      public SyntheticsUptime 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
    • getErrors_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<SLOHistoryResponseErrorWithType>> getErrors_JsonNullable()
    • setErrors_JsonNullable

      public void setErrors_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<SLOHistoryResponseErrorWithType>> errors)
    • setErrors

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

      public SyntheticsUptime group(String group)
    • getGroup

      @Nullable public String getGroup()
      The location name
      Returns:
      group
    • setGroup

      public void setGroup(String group)
    • history

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

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

      @Nullable public List<List<Double>> getHistory()
      The state transition history for the monitor, represented as an array of pairs. Each pair is an array where the first element is the transition timestamp in Unix epoch format (integer) and the second element is the state (integer). For the state, an integer value of 0 indicates uptime, 1 indicates downtime, and 2 indicates no data.
      Returns:
      history
    • setHistory

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

      public SyntheticsUptime spanPrecision(Double spanPrecision)
    • getSpanPrecision

      @Nullable public Double getSpanPrecision()
      The number of decimal places to which the SLI value is accurate for the given from-to timestamps.
      Returns:
      spanPrecision
    • setSpanPrecision

      public void setSpanPrecision(Double spanPrecision)
    • uptime

      public SyntheticsUptime uptime(Double uptime)
    • getUptime

      @Nullable public Double getUptime()
      The overall uptime.
      Returns:
      uptime
    • setUptime

      public void setUptime(Double uptime)
    • putAdditionalProperty

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