@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MetricSeries extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_INTERVAL |
static String |
JSON_PROPERTY_METADATA |
static String |
JSON_PROPERTY_METRIC |
static String |
JSON_PROPERTY_POINTS |
static String |
JSON_PROPERTY_RESOURCES |
static String |
JSON_PROPERTY_SOURCE_TYPE_NAME |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TYPE |
static String |
JSON_PROPERTY_UNIT |
boolean |
unparsed |
| Constructor and Description |
|---|
MetricSeries() |
MetricSeries(String metric,
List<MetricPoint> points) |
| Modifier and Type | Method and Description |
|---|---|
MetricSeries |
addPointsItem(MetricPoint pointsItem) |
MetricSeries |
addResourcesItem(MetricResource resourcesItem) |
MetricSeries |
addTagsItem(String tagsItem) |
boolean |
equals(Object o)
Return true if this MetricSeries 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.
|
Long |
getInterval()
If the type of the metric is rate or count, define the corresponding interval in seconds.
|
MetricMetadata |
getMetadata()
Metadata for the metric.
|
String |
getMetric()
The name of the timeseries.
|
List<MetricPoint> |
getPoints()
Points relating to a metric.
|
List<MetricResource> |
getResources()
A list of resources to associate with this metric.
|
String |
getSourceTypeName()
The source type name.
|
List<String> |
getTags()
A list of tags associated with the metric.
|
MetricIntakeType |
getType()
The type of metric.
|
String |
getUnit()
The unit of point value.
|
int |
hashCode() |
MetricSeries |
interval(Long interval) |
MetricSeries |
metadata(MetricMetadata metadata) |
MetricSeries |
metric(String metric) |
MetricSeries |
points(List<MetricPoint> points) |
MetricSeries |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
MetricSeries |
resources(List<MetricResource> resources) |
void |
setInterval(Long interval) |
void |
setMetadata(MetricMetadata metadata) |
void |
setMetric(String metric) |
void |
setPoints(List<MetricPoint> points) |
void |
setResources(List<MetricResource> resources) |
void |
setSourceTypeName(String sourceTypeName) |
void |
setTags(List<String> tags) |
void |
setType(MetricIntakeType type) |
void |
setUnit(String unit) |
MetricSeries |
sourceTypeName(String sourceTypeName) |
MetricSeries |
tags(List<String> tags) |
String |
toString() |
MetricSeries |
type(MetricIntakeType type) |
MetricSeries |
unit(String unit) |
public boolean unparsed
public static final String JSON_PROPERTY_INTERVAL
public static final String JSON_PROPERTY_METADATA
public static final String JSON_PROPERTY_METRIC
public static final String JSON_PROPERTY_POINTS
public static final String JSON_PROPERTY_RESOURCES
public static final String JSON_PROPERTY_SOURCE_TYPE_NAME
public static final String JSON_PROPERTY_TAGS
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_UNIT
public MetricSeries()
public MetricSeries(String metric, List<MetricPoint> points)
public MetricSeries interval(Long interval)
@Nullable public Long getInterval()
public void setInterval(Long interval)
public MetricSeries metadata(MetricMetadata metadata)
@Nullable public MetricMetadata getMetadata()
public void setMetadata(MetricMetadata metadata)
public MetricSeries metric(String metric)
public String getMetric()
public void setMetric(String metric)
public MetricSeries points(List<MetricPoint> points)
public MetricSeries addPointsItem(MetricPoint pointsItem)
public List<MetricPoint> getPoints()
public void setPoints(List<MetricPoint> points)
public MetricSeries resources(List<MetricResource> resources)
public MetricSeries addResourcesItem(MetricResource resourcesItem)
@Nullable public List<MetricResource> getResources()
public void setResources(List<MetricResource> resources)
public MetricSeries sourceTypeName(String sourceTypeName)
@Nullable public String getSourceTypeName()
public void setSourceTypeName(String sourceTypeName)
public MetricSeries tags(List<String> tags)
public MetricSeries addTagsItem(String tagsItem)
@Nullable public List<String> getTags()
public MetricSeries type(MetricIntakeType type)
@Nullable public MetricIntakeType getType()
0 (unspecified), 1
(count), 2 (rate), and 3 (gauge).public void setType(MetricIntakeType type)
public MetricSeries unit(String unit)
@Nullable public String getUnit()
public void setUnit(String unit)
public MetricSeries 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.