Package com.datadog.api.client.v1.model
Class SLOThreshold
java.lang.Object
com.datadog.api.client.v1.model.SLOThreshold
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SLOThreshold
extends Object
SLO thresholds (target and optionally warning) for a single time window.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this SLOThreshold object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The target value for the service level indicator within the corresponding timeframe.A string representation of the target that indicates its precision.The SLO time window options.The warning value for the service level objective.A string representation of the warning target (see the description of thetarget_displayfield for details).inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetTargetDisplay(String targetDisplay) voidsetTimeframe(SLOTimeframe timeframe) voidsetWarning(Double warning) voidsetWarningDisplay(String warningDisplay) targetDisplay(String targetDisplay) timeframe(SLOTimeframe timeframe) toString()warningDisplay(String warningDisplay)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_TARGET
- See Also:
-
JSON_PROPERTY_TARGET_DISPLAY
- See Also:
-
JSON_PROPERTY_TIMEFRAME
- See Also:
-
JSON_PROPERTY_WARNING
- See Also:
-
JSON_PROPERTY_WARNING_DISPLAY
- See Also:
-
-
Constructor Details
-
SLOThreshold
public SLOThreshold() -
SLOThreshold
-
-
Method Details
-
target
-
getTarget
The target value for the service level indicator within the corresponding timeframe.- Returns:
- target
-
setTarget
-
targetDisplay
-
getTargetDisplay
A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (for example98.00).Always included in service level objective responses. Ignored in create/update requests.
- Returns:
- targetDisplay
-
setTargetDisplay
-
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
-
warning
-
getWarning
The warning value for the service level objective.- Returns:
- warning
-
setWarning
-
warningDisplay
-
getWarningDisplay
A string representation of the warning target (see the description of thetarget_displayfield for details).Included in service level objective responses if a warning target exists. Ignored in create/update requests.
- Returns:
- warningDisplay
-
setWarningDisplay
-
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:
- SLOThreshold
-
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 SLOThreshold object is equal to o. -
hashCode
public int hashCode() -
toString
-