Package com.datadog.api.client.v1.model
Class SLOResponseData
java.lang.Object
com.datadog.api.client.v1.model.SLOResponseData
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SLOResponseData
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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfiguredAlertIdsItem(Long configuredAlertIdsItem) addGroupsItem(String groupsItem) addMonitorIdsItem(Long monitorIdsItem) addMonitorTagsItem(String monitorTagsItem) addTagsItem(String tagsItem) addThresholdsItem(SLOThreshold thresholdsItem) configuredAlertIds(List<Long> configuredAlertIds) description(String description) booleanReturn true if this SLOResponseData object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A list of SLO monitors IDs that reference this SLO.Creation timestamp (UNIX time in seconds)Object describing the creator of the shared element.A user-defined description of the service level objective.org.openapitools.jackson.nullable.JsonNullable<String>A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective.getId()A unique identifier for the service level objective object.Modification timestamp (UNIX time in seconds)A list of monitor ids that defines the scope of a monitor service level objective.The union of monitor tags for all monitors referenced by themonitor_idsfield.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) monitorTags(List<String> monitorTags) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.query(ServiceLevelObjectiveQuery query) voidsetConfiguredAlertIds(List<Long> configuredAlertIds) voidsetDescription(String description) voidsetDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> description) voidvoidsetMonitorIds(List<Long> monitorIds) voidsetMonitorTags(List<String> monitorTags) 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_CONFIGURED_ALERT_IDS
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATOR
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_GROUPS
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_MODIFIED_AT
- See Also:
-
JSON_PROPERTY_MONITOR_IDS
- See Also:
-
JSON_PROPERTY_MONITOR_TAGS
- 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
-
SLOResponseData
public SLOResponseData()
-
-
Method Details
-
configuredAlertIds
-
addConfiguredAlertIdsItem
-
getConfiguredAlertIds
A list of SLO monitors IDs that reference this SLO. This field is returned only whenwith_configured_alert_idsparameter is true in query.- Returns:
- configuredAlertIds
-
setConfiguredAlertIds
-
getCreatedAt
Creation timestamp (UNIX time in seconds)Always included in service level objective responses.
- Returns:
- createdAt
-
getCreator
Object describing the creator of the shared element.- Returns:
- creator
-
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 20) 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
-
getId
A unique identifier for the service level objective object.Always included in service level objective responses.
- Returns:
- id
-
getModifiedAt
Modification timestamp (UNIX time in seconds)Always included in service level objective responses.
- Returns:
- modifiedAt
-
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
-
monitorTags
-
addMonitorTagsItem
-
getMonitorTags
The union of monitor tags for all monitors referenced by themonitor_idsfield. Always included in service level objective responses for monitor 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 themonitor_idsfield).- Returns:
- monitorTags
-
setMonitorTags
-
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:
- SLOResponseData
-
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 SLOResponseData object is equal to o. -
hashCode
public int hashCode() -
toString
-