Class SLOCorrectionCreateRequestAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SLOCorrectionCreateRequestAttributes extends Object
The attribute object associated with the SLO correction to be created.

Exactly one of slo_id or slo_query must be provided.

  • Field Details

  • Constructor Details

    • SLOCorrectionCreateRequestAttributes

      public SLOCorrectionCreateRequestAttributes()
    • SLOCorrectionCreateRequestAttributes

      public SLOCorrectionCreateRequestAttributes(SLOCorrectionCategory category, Long start)
  • Method Details

    • category

    • getCategory

      public SLOCorrectionCategory getCategory()
      Category the SLO correction belongs to.
      Returns:
      category
    • setCategory

      public void setCategory(SLOCorrectionCategory category)
    • description

      public SLOCorrectionCreateRequestAttributes description(String description)
    • getDescription

      @Nullable public String getDescription()
      Description of the correction being made.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • duration

      public SLOCorrectionCreateRequestAttributes duration(Long duration)
    • getDuration

      @Nullable public Long getDuration()
      Length of time (in seconds) for a specified rrule recurring SLO correction.
      Returns:
      duration
    • setDuration

      public void setDuration(Long duration)
    • end

    • getEnd

      @Nullable public Long getEnd()
      Ending time of the correction in epoch seconds.
      Returns:
      end
    • setEnd

      public void setEnd(Long end)
    • rrule

    • getRrule

      @Nullable public String getRrule()
      The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections are FREQ, INTERVAL, COUNT, UNTIL and BYDAY.
      Returns:
      rrule
    • setRrule

      public void setRrule(String rrule)
    • sloId

    • getSloId

      @Nullable public String getSloId()
      ID of the single SLO that this correction applies to.
      Returns:
      sloId
    • setSloId

      public void setSloId(String sloId)
    • sloQuery

      public SLOCorrectionCreateRequestAttributes sloQuery(String sloQuery)
    • getSloQuery

      @Nullable public String getSloQuery()
      Query that matches the SLOs this correction applies to. The query uses the Events search syntax and can filter SLOs by SLO tags.
      Returns:
      sloQuery
    • setSloQuery

      public void setSloQuery(String sloQuery)
    • start

    • getStart

      public Long getStart()
      Starting time of the correction in epoch seconds.
      Returns:
      start
    • setStart

      public void setStart(Long start)
    • timezone

      public SLOCorrectionCreateRequestAttributes timezone(String timezone)
    • getTimezone

      @Nullable public String getTimezone()
      The timezone to display in the UI for the correction times (defaults to "UTC").
      Returns:
      timezone
    • setTimezone

      public void setTimezone(String timezone)
    • putAdditionalProperty

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