public interface MetricTagPayloadBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String key,
String name,
String value,
org.hawkular.metrics.client.common.MetricType metricType)
Add a tag to a metric type.
|
int |
getNumberTags() |
String |
getTenantId() |
void |
setTenantId(String tenantId)
If the metric tags are to be stored with a special tenant ID, this sets that tenant ID.
|
Map<String,String> |
toPayload()
Due to the way Hawkular Metrics REST API works, you can only add tags for a single metric.
|
void addTag(String key, String name, String 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 metricname - the name of the tagvalue - the value of the tagmetricType - the type of metricMap<String,String> toPayload()
int getNumberTags()
added to payloadvoid setTenantId(String tenantId)
tenantId - the tenant ID to associate the metric tags with. May be null.String getTenantId()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.