Interface ResourceStatusDelegate
- All Known Implementing Classes:
DefaultResourceStatusDelegate
public interface ResourceStatusDelegate
A delegate that provides health checks and metrics for a particular resource type.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault SortedMap<String,
IdentifiedHealthCheckResult> getCategoryHealthChecks
(com.codahale.metrics.health.HealthCheckRegistry registry) A set of healthchecks relevant to all resources of this typedefault SortedMap<String,
IdentifiedMetric> getCategoryMetrics
(com.codahale.metrics.MetricRegistry registry) A set of diagnostic metrics relevant to all resources of this type.default SortedMap<String,
IdentifiedHealthCheckResult> getInstanceHealthChecks
(com.codahale.metrics.health.HealthCheckRegistry registry, ResourcePath resource) A set of healthchecks relevant to the specific resourcedefault SortedMap<String,
IdentifiedMetric> getInstanceMetrics
(com.codahale.metrics.MetricRegistry registry, ResourcePath resource) A set of diagnostic metrics relevant to the specific resource
-
Field Details
-
NONE
-
-
Method Details
-
getCategoryHealthCheckAliases
-
getInstanceHealthCheckAliases
-
getCategoryMetricAliases
-
getInstanceMetricAliases
-
getCategoryHealthChecks
default SortedMap<String,IdentifiedHealthCheckResult> getCategoryHealthChecks(com.codahale.metrics.health.HealthCheckRegistry registry) A set of healthchecks relevant to all resources of this type -
getInstanceHealthChecks
default SortedMap<String,IdentifiedHealthCheckResult> getInstanceHealthChecks(com.codahale.metrics.health.HealthCheckRegistry registry, ResourcePath resource) A set of healthchecks relevant to the specific resource -
getCategoryMetrics
default SortedMap<String,IdentifiedMetric> getCategoryMetrics(com.codahale.metrics.MetricRegistry registry) A set of diagnostic metrics relevant to all resources of this type.- Parameters:
registry
- The shared metric registry for the gateway- Returns:
- A set of metrics relevant to all resources of this type
-
getInstanceMetrics
default SortedMap<String,IdentifiedMetric> getInstanceMetrics(com.codahale.metrics.MetricRegistry registry, ResourcePath resource) A set of diagnostic metrics relevant to the specific resource- Parameters:
registry
- The shared metric registry for the gatewayresource
- The resource to get metrics for- Returns:
- A set of metrics relevant to the specific resource
-