public class GaugeMetricSample<T> extends MetricSample
MetricSample.Type| 构造器和说明 |
|---|
GaugeMetricSample(MetricsKey metricsKey,
Map<String,String> tags,
MetricsCategory category,
T value,
ToDoubleFunction<T> apply) |
GaugeMetricSample(String name,
String description,
Map<String,String> tags,
MetricsCategory category,
String baseUnit,
T value,
ToDoubleFunction<T> apply) |
GaugeMetricSample(String name,
String description,
Map<String,String> tags,
MetricsCategory category,
T value,
ToDoubleFunction<T> apply) |
| 限定符和类型 | 方法和说明 |
|---|---|
double |
applyAsDouble() |
long |
applyAsLong() |
ToDoubleFunction<T> |
getApply() |
T |
getValue() |
equals, getBaseUnit, getCategory, getDescription, getName, getTags, getType, hashCode, setBaseUnit, setCategory, setDescription, setName, setTags, setType, toStringpublic GaugeMetricSample(MetricsKey metricsKey, Map<String,String> tags, MetricsCategory category, T value, ToDoubleFunction<T> apply)
public GaugeMetricSample(String name, String description, Map<String,String> tags, MetricsCategory category, T value, ToDoubleFunction<T> apply)
public GaugeMetricSample(String name, String description, Map<String,String> tags, MetricsCategory category, String baseUnit, T value, ToDoubleFunction<T> apply)
public T getValue()
public ToDoubleFunction<T> getApply()
public long applyAsLong()
public double applyAsDouble()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.