@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjective extends Object
name, description, tags, etc.).| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CREATED_AT |
static String |
JSON_PROPERTY_CREATOR |
static String |
JSON_PROPERTY_DESCRIPTION |
static String |
JSON_PROPERTY_GROUPS |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_MODIFIED_AT |
static String |
JSON_PROPERTY_MONITOR_IDS |
static String |
JSON_PROPERTY_MONITOR_TAGS |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_QUERY |
static String |
JSON_PROPERTY_SLI_SPECIFICATION |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TARGET_THRESHOLD |
static String |
JSON_PROPERTY_THRESHOLDS |
static String |
JSON_PROPERTY_TIMEFRAME |
static String |
JSON_PROPERTY_TYPE |
static String |
JSON_PROPERTY_WARNING_THRESHOLD |
boolean |
unparsed |
| Constructor and Description |
|---|
ServiceLevelObjective() |
ServiceLevelObjective(String name,
List<SLOThreshold> thresholds,
SLOType type) |
| Modifier and Type | Method and Description |
|---|---|
ServiceLevelObjective |
addGroupsItem(String groupsItem) |
ServiceLevelObjective |
addMonitorIdsItem(Long monitorIdsItem) |
ServiceLevelObjective |
addMonitorTagsItem(String monitorTagsItem) |
ServiceLevelObjective |
addTagsItem(String tagsItem) |
ServiceLevelObjective |
addThresholdsItem(SLOThreshold thresholdsItem) |
ServiceLevelObjective |
description(String description) |
boolean |
equals(Object o)
Return true if this ServiceLevelObjective object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Long |
getCreatedAt()
Creation timestamp (UNIX time in seconds)
|
Creator |
getCreator()
Object describing the creator of the shared element.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getDescription_JsonNullable() |
String |
getDescription()
A user-defined description of the service level objective.
|
List<String> |
getGroups()
A list of (up to 100) monitor groups that narrow the scope of a monitor service level
objective.
|
String |
getId()
A unique identifier for the service level objective object.
|
Long |
getModifiedAt()
Modification timestamp (UNIX time in seconds)
|
List<Long> |
getMonitorIds()
A list of monitor ids that defines the scope of a monitor service level objective.
|
List<String> |
getMonitorTags()
The union of monitor tags for all monitors referenced by the
monitor_ids field. |
String |
getName()
The name of the service level objective object.
|
ServiceLevelObjectiveQuery |
getQuery()
A metric-based SLO.
|
SLOSliSpec |
getSliSpecification()
A generic SLI specification.
|
List<String> |
getTags()
A list of tags associated with this service level objective.
|
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.
|
List<SLOThreshold> |
getThresholds()
The thresholds (timeframes and associated targets) for this service level objective object.
|
SLOTimeframe |
getTimeframe()
The SLO time window options.
|
SLOType |
getType()
The type of the service level objective.
|
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.
|
ServiceLevelObjective |
groups(List<String> groups) |
int |
hashCode() |
ServiceLevelObjective |
monitorIds(List<Long> monitorIds) |
ServiceLevelObjective |
monitorTags(List<String> monitorTags) |
ServiceLevelObjective |
name(String name) |
ServiceLevelObjective |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
ServiceLevelObjective |
query(ServiceLevelObjectiveQuery query) |
void |
setDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> description) |
void |
setDescription(String description) |
void |
setGroups(List<String> groups) |
void |
setMonitorIds(List<Long> monitorIds) |
void |
setMonitorTags(List<String> monitorTags) |
void |
setName(String name) |
void |
setQuery(ServiceLevelObjectiveQuery query) |
void |
setSliSpecification(SLOSliSpec sliSpecification) |
void |
setTags(List<String> tags) |
void |
setTargetThreshold(Double targetThreshold) |
void |
setThresholds(List<SLOThreshold> thresholds) |
void |
setTimeframe(SLOTimeframe timeframe) |
void |
setType(SLOType type) |
void |
setWarningThreshold(Double warningThreshold) |
ServiceLevelObjective |
sliSpecification(SLOSliSpec sliSpecification) |
ServiceLevelObjective |
tags(List<String> tags) |
ServiceLevelObjective |
targetThreshold(Double targetThreshold) |
ServiceLevelObjective |
thresholds(List<SLOThreshold> thresholds) |
ServiceLevelObjective |
timeframe(SLOTimeframe timeframe) |
String |
toString() |
ServiceLevelObjective |
type(SLOType type) |
ServiceLevelObjective |
warningThreshold(Double warningThreshold) |
public boolean unparsed
public static final String JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATOR
public static final String JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_GROUPS
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_MODIFIED_AT
public static final String JSON_PROPERTY_MONITOR_IDS
public static final String JSON_PROPERTY_MONITOR_TAGS
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_QUERY
public static final String JSON_PROPERTY_SLI_SPECIFICATION
public static final String JSON_PROPERTY_TAGS
public static final String JSON_PROPERTY_TARGET_THRESHOLD
public static final String JSON_PROPERTY_THRESHOLDS
public static final String JSON_PROPERTY_TIMEFRAME
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_WARNING_THRESHOLD
public ServiceLevelObjective()
public ServiceLevelObjective(String name, List<SLOThreshold> thresholds, SLOType type)
@Nullable public Long getCreatedAt()
Always included in service level objective responses.
@Nullable public Creator getCreator()
public ServiceLevelObjective description(String description)
@Nullable public String getDescription()
Always included in service level objective responses (but may be null).
Optional in create/update requests.
public org.openapitools.jackson.nullable.JsonNullable<String> getDescription_JsonNullable()
public void setDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> description)
public void setDescription(String description)
public ServiceLevelObjective groups(List<String> groups)
public ServiceLevelObjective addGroupsItem(String groupsItem)
@Nullable public List<String> getGroups()
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.
@Nullable public String getId()
Always included in service level objective responses.
@Nullable public Long getModifiedAt()
Always included in service level objective responses.
public ServiceLevelObjective monitorIds(List<Long> monitorIds)
public ServiceLevelObjective addMonitorIdsItem(Long monitorIdsItem)
@Nullable public List<Long> getMonitorIds()
monitor.public ServiceLevelObjective monitorTags(List<String> monitorTags)
public ServiceLevelObjective addMonitorTagsItem(String monitorTagsItem)
@Nullable public List<String> getMonitorTags()
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).public ServiceLevelObjective name(String name)
public String getName()
public void setName(String name)
public ServiceLevelObjective query(ServiceLevelObjectiveQuery query)
@Nullable public ServiceLevelObjectiveQuery getQuery()
metric. 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.public void setQuery(ServiceLevelObjectiveQuery query)
public ServiceLevelObjective sliSpecification(SLOSliSpec sliSpecification)
@Nullable public SLOSliSpec getSliSpecification()
public void setSliSpecification(SLOSliSpec sliSpecification)
public ServiceLevelObjective tags(List<String> tags)
public ServiceLevelObjective addTagsItem(String tagsItem)
@Nullable public List<String> getTags()
public ServiceLevelObjective targetThreshold(Double targetThreshold)
@Nullable public Double getTargetThreshold()
public void setTargetThreshold(Double targetThreshold)
public ServiceLevelObjective thresholds(List<SLOThreshold> thresholds)
public ServiceLevelObjective addThresholdsItem(SLOThreshold thresholdsItem)
public List<SLOThreshold> getThresholds()
public void setThresholds(List<SLOThreshold> thresholds)
public ServiceLevelObjective timeframe(SLOTimeframe timeframe)
@Nullable public SLOTimeframe getTimeframe()
public void setTimeframe(SLOTimeframe timeframe)
public ServiceLevelObjective type(SLOType type)
public SLOType getType()
public void setType(SLOType type)
public ServiceLevelObjective warningThreshold(Double warningThreshold)
@Nullable public Double getWarningThreshold()
public void setWarningThreshold(Double warningThreshold)
public ServiceLevelObjective putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.