public abstract class Metric<T extends MetricData> extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DPART |
| Modifier | Constructor and Description |
|---|---|
protected |
Metric(String tenantId,
MetricId id) |
protected |
Metric(String tenantId,
MetricId id,
Map<String,Optional<String>> tags) |
protected |
Metric(String tenantId,
MetricId id,
Map<String,Optional<String>> tags,
Integer dataRetention) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(T d) |
boolean |
equals(Object o) |
List<T> |
getData() |
Integer |
getDataRetention() |
long |
getDpart() |
MetricId |
getId() |
Map<String,Optional<String>> |
getTags()
A set of key/value pairs that are shared by all data points for the metric.
|
String |
getTenantId() |
abstract MetricType |
getType() |
int |
hashCode() |
void |
setDataRetention(Integer dataRetention) |
void |
setDpart(long dpart) |
void |
setId(MetricId id) |
void |
setTags(Map<String,Optional<String>> tags) |
Metric |
setTenantId(String tenantId) |
String |
toString() |
public static final long DPART
public abstract MetricType getType()
public String getTenantId()
public MetricId getId()
public void setId(MetricId id)
public long getDpart()
public void setDpart(long dpart)
public Map<String,Optional<String>> getTags()
public void addData(T d)
public Integer getDataRetention()
public void setDataRetention(Integer dataRetention)
Copyright © 2014–2015 Red Hat, Inc.. All rights reserved.