public class Metric<T> extends Object
| Constructor and Description |
|---|
Metric(Metric<T> other,
long minTimestamp,
long maxTimestamp)
Creates a new instance by copying the specified one, except the min and max timestamp fields.
|
Metric(MetricId<T> id) |
Metric(MetricId<T> id,
Integer dataRetention) |
Metric(MetricId<T> id,
List<DataPoint<T>> dataPoints) |
Metric(MetricId<T> id,
List<DataPoint<T>> dataPoints,
Integer dataRetention) |
Metric(MetricId<T> id,
Map<String,String> tags) |
Metric(MetricId<T> id,
Map<String,String> tags,
Integer dataRetention) |
Metric(MetricId<T> id,
Map<String,String> tags,
Integer dataRetention,
List<DataPoint<T>> dataPoints) |
Metric(String id,
Map<String,String> tags,
Integer dataRetention,
MetricType<T> type,
List<DataPoint<T>> data) |
Metric(String id,
Map<String,String> tags,
Integer dataRetention,
MetricType<T> type,
List<DataPoint<T>> data,
String tenantId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<DataPoint<T>> |
getDataPoints() |
Integer |
getDataRetention() |
String |
getId() |
Long |
getMaxTimestamp() |
MetricId<T> |
getMetricId() |
Long |
getMinTimestamp() |
Map<String,String> |
getTags() |
String |
getTenantId() |
MetricType<T> |
getType() |
int |
hashCode() |
String |
toString() |
public Metric(String id, Map<String,String> tags, Integer dataRetention, MetricType<T> type, List<DataPoint<T>> data, String tenantId)
public Metric(String id, Map<String,String> tags, Integer dataRetention, MetricType<T> type, List<DataPoint<T>> data)
public Metric(MetricId<T> id, Map<String,String> tags, Integer dataRetention, List<DataPoint<T>> dataPoints)
public Metric(Metric<T> other, long minTimestamp, long maxTimestamp)
other - the instance to copyminTimestamp - the new value for min timestampmaxTimestamp - the new value for max timestampCopyright © 2014–2018 Red Hat, Inc.. All rights reserved.