@ConfigurationProperties(prefix="endpoints.metrics") public class MetricsEndpoint extends AbstractEndpoint<Map<String,Object>>
Endpoint
to expose a collection of PublicMetrics
.Constructor and Description |
---|
MetricsEndpoint(Collection<PublicMetrics> publicMetrics)
Create a new
MetricsEndpoint instance. |
MetricsEndpoint(PublicMetrics publicMetrics)
Create a new
MetricsEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
invoke()
Called to invoke the endpoint.
|
void |
registerPublicMetrics(PublicMetrics metrics) |
void |
unregisterPublicMetrics(PublicMetrics metrics) |
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
public MetricsEndpoint(PublicMetrics publicMetrics)
MetricsEndpoint
instance.publicMetrics
- the metrics to exposepublic MetricsEndpoint(Collection<PublicMetrics> publicMetrics)
MetricsEndpoint
instance.publicMetrics
- the metrics to expose. The collection will be sorted using the
AnnotationAwareOrderComparator
.public void registerPublicMetrics(PublicMetrics metrics)
public void unregisterPublicMetrics(PublicMetrics metrics)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.