类 MetricsEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<Map<String,Object>>
- org.springframework.boot.actuate.endpoint.MetricsEndpoint
- 所有已实现的接口:
org.springframework.beans.factory.Aware,Endpoint<Map<String,Object>>,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.metrics") public class MetricsEndpoint extends AbstractEndpoint<Map<String,Object>>
Endpointto expose a collection ofPublicMetrics.
构造器概要
构造器 构造器 说明 MetricsEndpoint(Collection<PublicMetrics> publicMetrics)Create a newMetricsEndpointinstance.MetricsEndpoint(PublicMetrics publicMetrics)Create a newMetricsEndpointinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,Object>invoke()Called to invoke the endpoint.voidregisterPublicMetrics(PublicMetrics metrics)voidunregisterPublicMetrics(PublicMetrics metrics)从类继承的方法 org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
构造器详细资料
MetricsEndpoint
public MetricsEndpoint(PublicMetrics publicMetrics)
Create a newMetricsEndpointinstance.- 参数:
publicMetrics- the metrics to expose
MetricsEndpoint
public MetricsEndpoint(Collection<PublicMetrics> publicMetrics)
Create a newMetricsEndpointinstance.- 参数:
publicMetrics- the metrics to expose. The collection will be sorted using theAnnotationAwareOrderComparator.
方法详细资料
registerPublicMetrics
public void registerPublicMetrics(PublicMetrics metrics)
unregisterPublicMetrics
public void unregisterPublicMetrics(PublicMetrics metrics)