| Package | Description |
|---|---|
| org.jooby.metrics |
| Modifier and Type | Method and Description |
|---|---|
<H extends com.codahale.metrics.health.HealthCheck> |
Metrics.healthCheck(String name,
Class<H> check)
Append a health check to the
HealthCheckRegistry. |
Metrics |
Metrics.healthCheck(String name,
com.codahale.metrics.health.HealthCheck check)
Append a health check to the
HealthCheckRegistry. |
<M extends com.codahale.metrics.Metric> |
Metrics.metric(String name,
Class<M> metric)
Append a metric to the
MetricRegistry. |
Metrics |
Metrics.metric(String name,
com.codahale.metrics.Metric metric)
Append a metric to the
MetricRegistry, this call is identical to
MetricRegistry.register(String, Metric). |
Metrics |
Metrics.ping()
Append a simple ping handler that results in a
200 responses with a
pong body. |
Metrics |
Metrics.reporter(BiFunction<com.codahale.metrics.MetricRegistry,com.typesafe.config.Config,com.codahale.metrics.Reporter> callback)
Append a
Reporter to the MetricRegistry. |
Metrics |
Metrics.reporter(Function<com.codahale.metrics.MetricRegistry,com.codahale.metrics.Reporter> callback)
Append a
Reporter to the MetricRegistry. |
Metrics |
Metrics.request()
Instrument request using
InstrumentedHandler. |
Metrics |
Metrics.request(String pattern)
Instrument request using
InstrumentedHandler. |
Metrics |
Metrics.request(String method,
String pattern)
Instrument request using
InstrumentedHandler. |
Metrics |
Metrics.threadDump()
Append a handler that prints thread states (a.k.a thread dump).
|
Copyright © 2016. All rights reserved.