public <H extends HealthCheck> Metrics healthCheck(final String name, final Class<H> check) {
    bindings.add((binder, routes, conf) -> {
      MapBinder.newMapBinder(binder, String.class, HealthCheck.class)
          .addBinding(name)
          .to(check);
    });
    return this;
  }
public <H extends HealthCheck> Metrics healthCheck(final String name, final Class<H> check) {
    bindings.add((binder, routes, conf) -> {
      MapBinder.newMapBinder(binder, String.class, HealthCheck.class)
          .addBinding(name)
          .to(check);
    });
    return this;
  }
public < H extends HealthCheck > Metrics healthCheck ( final String name , final Class < H > check ) { bindings . add ( ( binder , routes , conf ) -> { MapBinder . newMapBinder ( binder , String . class , HealthCheck . class ) . addBinding ( name ) . to ( check ) ; } ) ; return this ; }
Append a health check to the {@link HealthCheckRegistry}. The metric will be resolved by Guice.
This call is identical to {@link HealthCheckRegistry#register(String, HealthCheck)}.

@param name Name of the check.
@param check A check object.
@param <H> {@link HealthCheck} type.
@return This metrics module.
Append a health check to the { @link HealthCheckRegistry } . The metric will be resolved by Guice . This call is identical to { @link HealthCheckRegistry#register ( String HealthCheck ) } .