Package com.datadog.api.client.v1.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServiceLevelObjectiveRequest(String name, List<SLOThreshold> thresholds, SLOType type) -
Method Summary
Modifier and TypeMethodDescriptionaddGroupsItem(String groupsItem) addMonitorIdsItem(Long monitorIdsItem) addTagsItem(String tagsItem) addThresholdsItem(SLOThreshold thresholdsItem) description(String description) booleanReturn true if this ServiceLevelObjectiveRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A user-defined description of the service level objective.org.openapitools.jackson.nullable.JsonNullable<String>A list of (up to 100) monitor groups that narrow the scope of a monitor service level objective.A list of monitor IDs that defines the scope of a monitor service level objective.getName()The name of the service level objective object.getQuery()A count-based (metric) SLO query.A generic SLI specification.getTags()A list of tags associated with this service level objective.The target threshold such that when the service level indicator is above this threshold over the given timeframe, the objective is being met.The thresholds (timeframes and associated targets) for this service level objective object.The SLO time window options.getType()The type of the service level objective.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.inthashCode()monitorIds(List<Long> monitorIds) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.query(ServiceLevelObjectiveQuery query) voidsetDescription(String description) voidsetDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> description) voidvoidsetMonitorIds(List<Long> monitorIds) voidvoidvoidsetSliSpecification(SLOSliSpec sliSpecification) voidvoidsetTargetThreshold(Double targetThreshold) voidsetThresholds(List<SLOThreshold> thresholds) voidsetTimeframe(SLOTimeframe timeframe) voidvoidsetWarningThreshold(Double warningThreshold) sliSpecification(SLOSliSpec sliSpecification) targetThreshold(Double targetThreshold) thresholds(List<SLOThreshold> thresholds) timeframe(SLOTimeframe timeframe) toString()warningThreshold(Double warningThreshold)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_GROUPS
- See Also:
-
JSON_PROPERTY_MONITOR_IDS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_QUERY
- See Also:
-
JSON_PROPERTY_SLI_SPECIFICATION
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TARGET_THRESHOLD
- See Also:
-
JSON_PROPERTY_THRESHOLDS
- See Also:
-
JSON_PROPERTY_TIMEFRAME
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_WARNING_THRESHOLD
- See Also:
-
-
Constructor Details
-
ServiceLevelObjectiveRequest
public ServiceLevelObjectiveRequest() -
ServiceLevelObjectiveRequest
-
-
Method Details
-
description
-
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
-
setDescription_JsonNullable
public void setDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> description) -
setDescription
-
groups
-
addGroupsItem
-
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_idsfield is one.- Returns:
- groups
-
setGroups
-
monitorIds
-
addMonitorIdsItem
-
getMonitorIds
A list of monitor IDs that defines the scope of a monitor service level objective. Required if type ismonitor.- Returns:
- monitorIds
-
setMonitorIds
-
name
-
getName
The name of the service level objective object.- Returns:
- name
-
setName
-
query
-
getQuery
A count-based (metric) SLO query. This field is superseded bysli_specificationbut 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
-
sliSpecification
-
getSliSpecification
A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.- Returns:
- sliSpecification
-
setSliSpecification
-
tags
-
addTagsItem
-
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
-
targetThreshold
-
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
-
thresholds
-
addThresholdsItem
-
getThresholds
The thresholds (timeframes and associated targets) for this service level objective object.- Returns:
- thresholds
-
setThresholds
-
timeframe
-
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
-
type
-
getType
The type of the service level objective.- Returns:
- type
-
setType
-
warningThreshold
-
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
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- ServiceLevelObjectiveRequest
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this ServiceLevelObjectiveRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-