Class ServiceLevelObjectiveRequest

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjectiveRequest extends Object
A service level objective object includes a service level indicator, thresholds for one or more timeframes, and metadata (name, description, tags, etc.).
  • Field Details

  • Constructor Details

    • ServiceLevelObjectiveRequest

      public ServiceLevelObjectiveRequest()
    • ServiceLevelObjectiveRequest

      public ServiceLevelObjectiveRequest(String name, List<SLOThreshold> thresholds, SLOType type)
  • Method Details

    • description

      public ServiceLevelObjectiveRequest description(String description)
    • getDescription

      @Nullable public String getDescription()
      A user-defined description of the service level objective.

      Always included in service level objective responses (but may be null). Optional in create/update requests.

      Returns:
      description
    • getDescription_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getDescription_JsonNullable()
    • setDescription_JsonNullable

      public void setDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> description)
    • setDescription

      public void setDescription(String description)
    • groups

      public ServiceLevelObjectiveRequest groups(List<String> groups)
    • addGroupsItem

      public ServiceLevelObjectiveRequest addGroupsItem(String groupsItem)
    • getGroups

      @Nullable public List<String> getGroups()
      A list of (up to 100) monitor groups that narrow the scope of a monitor service level objective.

      Included in service level objective responses if it is not empty. Optional in create/update requests for monitor service level objectives, but may only be used when then length of the monitor_ids field is one.

      Returns:
      groups
    • setGroups

      public void setGroups(List<String> groups)
    • monitorIds

      public ServiceLevelObjectiveRequest monitorIds(List<Long> monitorIds)
    • addMonitorIdsItem

      public ServiceLevelObjectiveRequest addMonitorIdsItem(Long monitorIdsItem)
    • getMonitorIds

      @Nullable public List<Long> getMonitorIds()
      A list of monitor IDs that defines the scope of a monitor service level objective. Required if type is monitor.
      Returns:
      monitorIds
    • setMonitorIds

      public void setMonitorIds(List<Long> monitorIds)
    • name

    • getName

      public String getName()
      The name of the service level objective object.
      Returns:
      name
    • setName

      public void setName(String name)
    • query

    • getQuery

      @Nullable public ServiceLevelObjectiveQuery getQuery()
      A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator to be used because this will sum up all request counts instead of averaging them, or taking the max or min of all of those requests.
      Returns:
      query
    • setQuery

      public void setQuery(ServiceLevelObjectiveQuery query)
    • sliSpecification

      public ServiceLevelObjectiveRequest sliSpecification(SLOSliSpec sliSpecification)
    • getSliSpecification

      @Nullable public SLOSliSpec getSliSpecification()
      A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.
      Returns:
      sliSpecification
    • setSliSpecification

      public void setSliSpecification(SLOSliSpec sliSpecification)
    • tags

    • addTagsItem

      public ServiceLevelObjectiveRequest addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty). Optional in create/update requests.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • targetThreshold

      public ServiceLevelObjectiveRequest targetThreshold(Double targetThreshold)
    • getTargetThreshold

      @Nullable public Double getTargetThreshold()
      The target threshold such that when the service level indicator is above this threshold over the given timeframe, the objective is being met.
      Returns:
      targetThreshold
    • setTargetThreshold

      public void setTargetThreshold(Double targetThreshold)
    • thresholds

      public ServiceLevelObjectiveRequest thresholds(List<SLOThreshold> thresholds)
    • addThresholdsItem

      public ServiceLevelObjectiveRequest addThresholdsItem(SLOThreshold thresholdsItem)
    • getThresholds

      public List<SLOThreshold> getThresholds()
      The thresholds (timeframes and associated targets) for this service level objective object.
      Returns:
      thresholds
    • setThresholds

      public void setThresholds(List<SLOThreshold> thresholds)
    • timeframe

      public ServiceLevelObjectiveRequest timeframe(SLOTimeframe timeframe)
    • getTimeframe

      @Nullable public SLOTimeframe getTimeframe()
      The SLO time window options. Note that "custom" is not a valid option for creating or updating SLOs. It is only used when querying SLO history over custom timeframes.
      Returns:
      timeframe
    • setTimeframe

      public void setTimeframe(SLOTimeframe timeframe)
    • type

    • getType

      public SLOType getType()
      The type of the service level objective.
      Returns:
      type
    • setType

      public void setType(SLOType type)
    • warningThreshold

      public ServiceLevelObjectiveRequest warningThreshold(Double warningThreshold)
    • getWarningThreshold

      @Nullable public Double getWarningThreshold()
      The optional warning threshold such that when the service level indicator is below this value for the given threshold, but above the target threshold, the objective appears in a "warning" state. This value must be greater than the target threshold.
      Returns:
      warningThreshold
    • setWarningThreshold

      public void setWarningThreshold(Double warningThreshold)
    • putAdditionalProperty

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