public class MetricsOnlyMetricDataPayloadBuilder extends Object implements MetricDataPayloadBuilder
| Constructor and Description |
|---|
MetricsOnlyMetricDataPayloadBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataPoint(String key,
long timestamp,
double value,
org.hawkular.metrics.client.common.MetricType metricType)
Add a metric data point.
|
int |
getNumberDataPoints() |
Map<String,List<Map<String,Object>>> |
toObjectPayload() |
String |
toPayload() |
public void addDataPoint(String key, long timestamp, double value, org.hawkular.metrics.client.common.MetricType metricType)
MetricDataPayloadBuilderMetricDataPayloadBuilder.toPayload() to get the payload message that can be used to
send to the storage backend via the storage adapter.addDataPoint in interface MetricDataPayloadBuilderkey - identifies the metrictimestamp - the time the metric was collectedvalue - the value of the metricmetricType - the type of metricpublic String toPayload()
toPayload in interface MetricDataPayloadBuilderpublic int getNumberDataPoints()
getNumberDataPoints in interface MetricDataPayloadBuilderadded to the payloadCopyright © 2015 Red Hat, Inc.. All rights reserved.