Package com.datadog.api.client.v2.model
Class SpansCompute
java.lang.Object
com.datadog.api.client.v2.model.SpansCompute
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SpansCompute
extends Object
A compute rule to compute metrics or timeseries.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregation(SpansAggregationFunction aggregation) booleanReturn true if this SpansCompute object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.An aggregation function.The time buckets' size (only used for type=timeseries) Defaults to a resolution of 150 points.The metric to use.getType()The type of compute.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAggregation(SpansAggregationFunction aggregation) voidsetInterval(String interval) voidvoidsetType(SpansComputeType type) toString()type(SpansComputeType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AGGREGATION
- See Also:
-
JSON_PROPERTY_INTERVAL
- See Also:
-
JSON_PROPERTY_METRIC
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
SpansCompute
public SpansCompute() -
SpansCompute
-
-
Method Details
-
aggregation
-
getAggregation
An aggregation function.- Returns:
- aggregation
-
setAggregation
-
interval
-
getInterval
The time buckets' size (only used for type=timeseries) Defaults to a resolution of 150 points.- Returns:
- interval
-
setInterval
-
metric
-
getMetric
The metric to use.- Returns:
- metric
-
setMetric
-
type
-
getType
The type of compute.- Returns:
- type
-
setType
-
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:
- SpansCompute
-
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 SpansCompute object is equal to o. -
hashCode
public int hashCode() -
toString
-