Class ServiceLevelObjective

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjective 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

    • ServiceLevelObjective

      public ServiceLevelObjective()
    • ServiceLevelObjective

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

    • getCreatedAt

      @Nullable public Long getCreatedAt()
      Creation timestamp (UNIX time in seconds)

      Always included in service level objective responses.

      Returns:
      createdAt
    • getCreator

      @Nullable public Creator getCreator()
      Object describing the creator of the shared element.
      Returns:
      creator
    • description

      public ServiceLevelObjective 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 ServiceLevelObjective groups(List<String> groups)
    • addGroupsItem

      public ServiceLevelObjective 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)
    • getId

      @Nullable public String getId()
      A unique identifier for the service level objective object.

      Always included in service level objective responses.

      Returns:
      id
    • getModifiedAt

      @Nullable public Long getModifiedAt()
      Modification timestamp (UNIX time in seconds)

      Always included in service level objective responses.

      Returns:
      modifiedAt
    • monitorIds

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

      public ServiceLevelObjective 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)
    • monitorTags

      public ServiceLevelObjective monitorTags(List<String> monitorTags)
    • addMonitorTagsItem

      public ServiceLevelObjective addMonitorTagsItem(String monitorTagsItem)
    • getMonitorTags

      @Nullable public List<String> getMonitorTags()
      The union of monitor tags for all monitors referenced by the monitor_ids field. Always included in service level objective responses for monitor-based service level objectives (but may be empty). Ignored in create/update requests. Does not affect which monitors are included in the service level objective (that is determined entirely by the monitor_ids field).
      Returns:
      monitorTags
    • setMonitorTags

      public void setMonitorTags(List<String> monitorTags)
    • name

      public ServiceLevelObjective name(String 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 ServiceLevelObjective 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

      public ServiceLevelObjective tags(List<String> tags)
    • addTagsItem

      public ServiceLevelObjective 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 ServiceLevelObjective 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 ServiceLevelObjective thresholds(List<SLOThreshold> thresholds)
    • addThresholdsItem

      public ServiceLevelObjective 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 ServiceLevelObjective 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

      public ServiceLevelObjective type(SLOType type)
    • getType

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

      public void setType(SLOType type)
    • warningThreshold

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