public interface MetricDataPayloadBuilder
| 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() |
String |
getTenantId() |
void |
setTenantId(String tenantId)
If the metric data is to be stored with a special tenant ID, this sets that tenant ID.
|
Object |
toPayload() |
void addDataPoint(String key, long timestamp, double value, org.hawkular.metrics.client.common.MetricType metricType)
toPayload() to get the payload message that can be used to
send to the storage backend via the storage adapter.key - identifies the metrictimestamp - the time the metric was collectedvalue - the value of the metricmetricType - the type of metricObject toPayload()
int getNumberDataPoints()
added to the payloadvoid setTenantId(String tenantId)
tenantId - the tenant ID to associate the metric data with. May be null.String getTenantId()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.