@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjectiveRequest extends Object
name, description, tags, etc.).| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_DESCRIPTION |
static String |
JSON_PROPERTY_GROUPS |
static String |
JSON_PROPERTY_MONITOR_IDS |
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 |
|---|
ServiceLevelObjectiveRequest() |
ServiceLevelObjectiveRequest(String name,
List<SLOThreshold> thresholds,
SLOType type) |
| Modifier and Type | Method and Description |
|---|---|
ServiceLevelObjectiveRequest |
addGroupsItem(String groupsItem) |
ServiceLevelObjectiveRequest |
addMonitorIdsItem(Long monitorIdsItem) |
ServiceLevelObjectiveRequest |
addTagsItem(String tagsItem) |
ServiceLevelObjectiveRequest |
addThresholdsItem(SLOThreshold thresholdsItem) |
ServiceLevelObjectiveRequest |
description(String description) |
boolean |
equals(Object o)
Return true if this ServiceLevelObjectiveRequest 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.
|
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.
|
List<Long> |
getMonitorIds()
A list of monitor IDs that defines the scope of a monitor service level objective.
|
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.
|
ServiceLevelObjectiveRequest |
groups(List<String> groups) |
int |
hashCode() |
ServiceLevelObjectiveRequest |
monitorIds(List<Long> monitorIds) |
ServiceLevelObjectiveRequest |
name(String name) |
ServiceLevelObjectiveRequest |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
ServiceLevelObjectiveRequest |
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 |
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) |
ServiceLevelObjectiveRequest |
sliSpecification(SLOSliSpec sliSpecification) |
ServiceLevelObjectiveRequest |
tags(List<String> tags) |
ServiceLevelObjectiveRequest |
targetThreshold(Double targetThreshold) |
ServiceLevelObjectiveRequest |
thresholds(List<SLOThreshold> thresholds) |
ServiceLevelObjectiveRequest |
timeframe(SLOTimeframe timeframe) |
String |
toString() |
ServiceLevelObjectiveRequest |
type(SLOType type) |
ServiceLevelObjectiveRequest |
warningThreshold(Double warningThreshold) |
public boolean unparsed
public static final String JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_GROUPS
public static final String JSON_PROPERTY_MONITOR_IDS
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 ServiceLevelObjectiveRequest()
public ServiceLevelObjectiveRequest(String name, List<SLOThreshold> thresholds, SLOType type)
public ServiceLevelObjectiveRequest 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 ServiceLevelObjectiveRequest groups(List<String> groups)
public ServiceLevelObjectiveRequest 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.
public ServiceLevelObjectiveRequest monitorIds(List<Long> monitorIds)
public ServiceLevelObjectiveRequest addMonitorIdsItem(Long monitorIdsItem)
@Nullable public List<Long> getMonitorIds()
monitor.public ServiceLevelObjectiveRequest name(String name)
public String getName()
public void setName(String name)
public ServiceLevelObjectiveRequest 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 ServiceLevelObjectiveRequest sliSpecification(SLOSliSpec sliSpecification)
@Nullable public SLOSliSpec getSliSpecification()
public void setSliSpecification(SLOSliSpec sliSpecification)
public ServiceLevelObjectiveRequest tags(List<String> tags)
public ServiceLevelObjectiveRequest addTagsItem(String tagsItem)
@Nullable public List<String> getTags()
public ServiceLevelObjectiveRequest targetThreshold(Double targetThreshold)
@Nullable public Double getTargetThreshold()
public void setTargetThreshold(Double targetThreshold)
public ServiceLevelObjectiveRequest thresholds(List<SLOThreshold> thresholds)
public ServiceLevelObjectiveRequest addThresholdsItem(SLOThreshold thresholdsItem)
public List<SLOThreshold> getThresholds()
public void setThresholds(List<SLOThreshold> thresholds)
public ServiceLevelObjectiveRequest timeframe(SLOTimeframe timeframe)
@Nullable public SLOTimeframe getTimeframe()
public void setTimeframe(SLOTimeframe timeframe)
public ServiceLevelObjectiveRequest type(SLOType type)
public SLOType getType()
public void setType(SLOType type)
public ServiceLevelObjectiveRequest warningThreshold(Double warningThreshold)
@Nullable public Double getWarningThreshold()
public void setWarningThreshold(Double warningThreshold)
public ServiceLevelObjectiveRequest 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.