Interface ResourceStatusDelegate

All Known Implementing Classes:
DefaultResourceStatusDelegate

public interface ResourceStatusDelegate
A delegate that provides health checks and metrics for a particular resource type.
  • Field Details

  • Method Details

    • getCategoryHealthCheckAliases

      default List<String> getCategoryHealthCheckAliases()
    • getInstanceHealthCheckAliases

      default List<String> getInstanceHealthCheckAliases()
    • getCategoryMetricAliases

      default List<String> getCategoryMetricAliases()
    • getInstanceMetricAliases

      default List<String> 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 gateway
      resource - The resource to get metrics for
      Returns:
      A set of metrics relevant to the specific resource