public class RawNumericMetric extends Object implements NumericMetric
| Constructor and Description |
|---|
RawNumericMetric() |
RawNumericMetric(String id,
Double value,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Double |
getAvg() |
String |
getBucket()
Returns the identifier that defines a time interval such as 1 minute, 5 minutes, 1 hour,
1 day, etc.
|
String |
getId() |
Double |
getMax() |
Double |
getMin() |
long |
getTimestamp()
For aggregate Metrics, returns the beginning of the bucket, whereas for raw metrics, returns
time when the data point was collected
|
Double |
getValue() |
int |
hashCode() |
void |
setId(String id) |
void |
setTimestamp(long timestamp) |
void |
setValue(Double value) |
String |
toString() |
public String getBucket()
NumericMetricNumericMetric were computed.
Another possible names for bucket are roll-up or time window.
"raw" is a special value meaning that this NumericMetric stores a raw instant
data rather than data aggregated over a time window.
getBucket in interface NumericMetricpublic String getId()
getId in interface NumericMetricpublic void setId(String id)
public Double getMin()
getMin in interface NumericMetricpublic Double getMax()
getMax in interface NumericMetricpublic Double getAvg()
getAvg in interface NumericMetricpublic Double getValue()
public void setValue(Double value)
public long getTimestamp()
NumericMetricgetTimestamp in interface NumericMetricpublic void setTimestamp(long timestamp)
Copyright © 2014 Red Hat, Inc.. All rights reserved.