Package com.datadog.api.client.v2.model
Class MetricSeries
java.lang.Object
com.datadog.api.client.v2.model.MetricSeries
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class MetricSeries
extends Object
A metric to submit to Datadog. See Datadog
metrics.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPointsItem(MetricPoint pointsItem) addResourcesItem(MetricResource resourcesItem) addTagsItem(String tagsItem) booleanReturn true if this MetricSeries object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.If the type of the metric is rate or count, define the corresponding interval in seconds.Metadata for the metric.The name of the timeseries.Points relating to a metric.A list of resources to associate with this metric.The source type name.getTags()A list of tags associated with the metric.getType()The type of metric.getUnit()The unit of point value.inthashCode()metadata(MetricMetadata metadata) points(List<MetricPoint> points) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resources(List<MetricResource> resources) voidsetInterval(Long interval) voidsetMetadata(MetricMetadata metadata) voidvoidsetPoints(List<MetricPoint> points) voidsetResources(List<MetricResource> resources) voidsetSourceTypeName(String sourceTypeName) voidvoidsetType(MetricIntakeType type) voidsourceTypeName(String sourceTypeName) toString()type(MetricIntakeType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_INTERVAL
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_METRIC
- See Also:
-
JSON_PROPERTY_POINTS
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
JSON_PROPERTY_SOURCE_TYPE_NAME
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_UNIT
- See Also:
-
-
Constructor Details
-
MetricSeries
public MetricSeries() -
MetricSeries
-
-
Method Details
-
interval
-
getInterval
If the type of the metric is rate or count, define the corresponding interval in seconds.- Returns:
- interval
-
setInterval
-
metadata
-
getMetadata
Metadata for the metric.- Returns:
- metadata
-
setMetadata
-
metric
-
getMetric
The name of the timeseries.- Returns:
- metric
-
setMetric
-
points
-
addPointsItem
-
getPoints
Points relating to a metric. All points must be objects with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past.- Returns:
- points
-
setPoints
-
resources
-
addResourcesItem
-
getResources
A list of resources to associate with this metric.- Returns:
- resources
-
setResources
-
sourceTypeName
-
getSourceTypeName
The source type name.- Returns:
- sourceTypeName
-
setSourceTypeName
-
tags
-
addTagsItem
-
getTags
A list of tags associated with the metric.- Returns:
- tags
-
setTags
-
type
-
getType
The type of metric. The available types are0(unspecified),1(count),2(rate), and3(gauge).- Returns:
- type
-
setType
-
unit
-
getUnit
The unit of point value.- Returns:
- unit
-
setUnit
-
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:
- MetricSeries
-
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 MetricSeries object is equal to o. -
hashCode
public int hashCode() -
toString
-