Package com.datadog.api.client.v1.model
Class SLOTimeSliceCondition
java.lang.Object
com.datadog.api.client.v1.model.SLOTimeSliceCondition
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SLOTimeSliceCondition
extends Object
The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator,
and 3. the threshold. Optionally, a fourth part, the query interval, can be provided.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSLOTimeSliceCondition(SLOTimeSliceComparator comparator, SLOTimeSliceQuery query, Double threshold) -
Method Summary
Modifier and TypeMethodDescriptioncomparator(SLOTimeSliceComparator comparator) booleanReturn true if this SLOTimeSliceCondition object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The comparator used to compare the SLI value to the threshold.getQuery()The queries and formula used to calculate the SLI value.The interval used when querying data, which defines the size of a time slice.The threshold value to which each SLI value will be compared.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.query(SLOTimeSliceQuery query) queryIntervalSeconds(SLOTimeSliceInterval queryIntervalSeconds) voidsetComparator(SLOTimeSliceComparator comparator) voidsetQuery(SLOTimeSliceQuery query) voidsetQueryIntervalSeconds(SLOTimeSliceInterval queryIntervalSeconds) voidsetThreshold(Double threshold) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_COMPARATOR
- See Also:
-
JSON_PROPERTY_QUERY
- See Also:
-
JSON_PROPERTY_QUERY_INTERVAL_SECONDS
- See Also:
-
JSON_PROPERTY_THRESHOLD
- See Also:
-
-
Constructor Details
-
SLOTimeSliceCondition
public SLOTimeSliceCondition() -
SLOTimeSliceCondition
public SLOTimeSliceCondition(SLOTimeSliceComparator comparator, SLOTimeSliceQuery query, Double threshold)
-
-
Method Details
-
comparator
-
getComparator
The comparator used to compare the SLI value to the threshold.- Returns:
- comparator
-
setComparator
-
query
-
getQuery
The queries and formula used to calculate the SLI value.- Returns:
- query
-
setQuery
-
queryIntervalSeconds
-
getQueryIntervalSeconds
The interval used when querying data, which defines the size of a time slice. Two values are allowed: 60 (1 minute) and 300 (5 minutes). If not provided, the value defaults to 300 (5 minutes).- Returns:
- queryIntervalSeconds
-
setQueryIntervalSeconds
-
threshold
-
getThreshold
The threshold value to which each SLI value will be compared.- Returns:
- threshold
-
setThreshold
-
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:
- SLOTimeSliceCondition
-
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 SLOTimeSliceCondition object is equal to o. -
hashCode
public int hashCode() -
toString
-