Interface Metrics.MetricSample
- Enclosing interface:
- Metrics
public static interface Metrics.MetricSample
Represents a single metric sample.
- Since:
- 6.10
-
Method Summary
-
Method Details
-
getName
String getName()Returns the name of the metric sample.- Returns:
- the name of the metric sample
-
getLabelNames
Returns the list of label names for the metric sample. The nth label name corresponds to the nth label value.- Returns:
- the list of label names
-
getLabelValues
Returns the list of label values for the metric sample. The nth label value corresponds to the nth label name.- Returns:
- the list of label values
-
getTimestamp
Returns the timestamp for the metric sample.- Returns:
- an Optional containing the timestamp if present, otherwise an empty Optional
-
getValue
double getValue()Returns the value of the metric sample.- Returns:
- the value of the metric sample
-