类 MetricsEndpointMetricReader
- java.lang.Object
- org.springframework.boot.actuate.endpoint.MetricsEndpointMetricReader
- 所有已实现的接口:
MetricReader
public class MetricsEndpointMetricReader extends Object implements MetricReader
MetricReaderthat pulls all current values out of theMetricsEndpoint. No timestamp information is available, so there is no way to check if the values are recent, and they all come out with the default (current time).- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 MetricsEndpointMetricReader(MetricsEndpoint endpoint)
构造器详细资料
MetricsEndpointMetricReader
public MetricsEndpointMetricReader(MetricsEndpoint endpoint)
方法详细资料
findOne
public Metric<?> findOne(String metricName)
从接口复制的说明:MetricReaderFind an instance of the metric with the given name (usually the latest recorded value).- 指定者:
findOne在接口中MetricReader- 参数:
metricName- the name of the metric to find- 返回:
- a metric value or null if there are none with that name
findAll
public Iterable<Metric<?>> findAll()
从接口复制的说明:MetricReaderFind all the metrics known to this reader.- 指定者:
findAll在接口中MetricReader- 返回:
- all instances of metrics known to this reader
count
public long count()
从接口复制的说明:MetricReaderThe number of metrics known to this reader.- 指定者:
count在接口中MetricReader- 返回:
- the number of metrics