org.qi4j.api.metrics

## Interface MetricsHealthCheckFactory

- All Superinterfaces:
    MetricsFactory
  All Known Implementing Classes:
    NullMetricsFactory.NullHealthCheckFactory

      public interface MetricsHealthCheckFactory
      extends MetricsFactory

  Create MetricsHealthCheck instances.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `MetricsHealthCheck` | `registerHealthCheck(Class<?> origin, String name, MetricsHealthCheck check)` Create a MetricsHealthCheck instance.

    - ### Methods inherited from interface org.qi4j.api.metrics.MetricsFactory

      `registered`

- - ### Method Detail

    - #### registerHealthCheck

          MetricsHealthCheck registerHealthCheck(Class<?> origin,
                                               String name,
                                               MetricsHealthCheck check)

      Create a MetricsHealthCheck instance. If the same arguments are given twice, the same instance must be returned.
      Parameters:
        `origin` - The class that instantiate the metric
        `name` - A human readable, short name of the metric.
        `check` - The health check to be performed regularly.
      Returns:
        A MetricsHealthCheck instance to be used, OR org.qi4j.spi.metrics.DefaultMetric.NULL if not supported.