public static class MetricsCache.Record extends Object
Constructor and Description |
---|
MetricsCache.Record() |
Modifier and Type | Method and Description |
---|---|
Number |
getMetric(String key)
Lookup a metric value
|
AbstractMetric |
getMetricInstance(String key)
Lookup a metric instance
|
String |
getTag(String key)
Lookup a tag value
|
Set<Map.Entry<String,Number>> |
metrics()
Deprecated.
use metricsEntrySet() instead
|
Set<Map.Entry<String,AbstractMetric>> |
metricsEntrySet() |
Set<Map.Entry<String,String>> |
tags() |
String |
toString() |
public MetricsCache.Record()
public String getTag(String key)
key
- name of the tagpublic Number getMetric(String key)
key
- name of the metricpublic AbstractMetric getMetricInstance(String key)
key
- name of the metric@Deprecated public Set<Map.Entry<String,Number>> metrics()
public Set<Map.Entry<String,AbstractMetric>> metricsEntrySet()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.