Class SloReportCreateRequestAttributes

java.lang.Object
com.datadog.api.client.v2.model.SloReportCreateRequestAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SloReportCreateRequestAttributes extends Object
The attributes portion of the SLO report request.
  • Field Details

  • Constructor Details

    • SloReportCreateRequestAttributes

      public SloReportCreateRequestAttributes()
    • SloReportCreateRequestAttributes

      public SloReportCreateRequestAttributes(Long fromTs, String query, Long toTs)
  • Method Details

    • fromTs

      public SloReportCreateRequestAttributes fromTs(Long fromTs)
    • getFromTs

      public Long getFromTs()
      The from timestamp for the report in epoch seconds.
      Returns:
      fromTs
    • setFromTs

      public void setFromTs(Long fromTs)
    • interval

    • getInterval

      @Nullable public SLOReportInterval getInterval()
      The frequency at which report data is to be generated.
      Returns:
      interval
    • setInterval

      public void setInterval(SLOReportInterval interval)
    • query

    • getQuery

      public String getQuery()
      The query string used to filter SLO results. Some examples of queries include service:<service-name> and slo-name.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • timezone

      public SloReportCreateRequestAttributes timezone(String timezone)
    • getTimezone

      @Nullable public String getTimezone()
      The timezone used to determine the start and end of each interval. For example, weekly intervals start at 12am on Sunday in the specified timezone.
      Returns:
      timezone
    • setTimezone

      public void setTimezone(String timezone)
    • toTs

    • getToTs

      public Long getToTs()
      The to timestamp for the report in epoch seconds.
      Returns:
      toTs
    • setToTs

      public void setToTs(Long toTs)
    • putAdditionalProperty

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