Class GaugeMetricSample<T>
java.lang.Object
org.apache.dubbo.metrics.model.sample.MetricSample
org.apache.dubbo.metrics.model.sample.GaugeMetricSample<T>
GaugeMetricSample.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.dubbo.metrics.model.sample.MetricSample
MetricSample.Type -
Constructor Summary
ConstructorsConstructorDescriptionGaugeMetricSample(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) GaugeMetricSample(MetricsKey metricsKey, Map<String, String> tags, MetricsCategory category, T value, ToDoubleFunction<T> apply) GaugeMetricSample(MetricsKeyWrapper metricsKeyWrapper, Map<String, String> tags, MetricsCategory category, T value, ToDoubleFunction<T> apply) -
Method Summary
Methods inherited from class org.apache.dubbo.metrics.model.sample.MetricSample
equals, getBaseUnit, getCategory, getDescription, getName, getTags, getType, hashCode, setBaseUnit, setCategory, setDescription, setName, setTags, setType, toString
-
Constructor Details
-
GaugeMetricSample
public GaugeMetricSample(MetricsKey metricsKey, Map<String, String> tags, MetricsCategory category, T value, ToDoubleFunction<T> apply) -
GaugeMetricSample
public GaugeMetricSample(MetricsKeyWrapper metricsKeyWrapper, Map<String, String> tags, MetricsCategory category, T value, ToDoubleFunction<T> apply) -
GaugeMetricSample
public GaugeMetricSample(String name, String description, Map<String, String> tags, MetricsCategory category, T value, ToDoubleFunction<T> apply) -
GaugeMetricSample
public GaugeMetricSample(String name, String description, Map<String, String> tags, MetricsCategory category, String baseUnit, T value, ToDoubleFunction<T> apply)
-
-
Method Details
-
getValue
-
getApply
-
applyAsLong
public long applyAsLong() -
applyAsDouble
public double applyAsDouble()
-