public interface MetricsService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COUNTER_ACTIVE_REQUESTS |
static java.lang.String |
METER_ALL_REQUESTS |
static java.lang.String |
METER_BAD_REQUESTS |
static java.lang.String |
METER_INTERNAL_SERVER_ERRORS |
static java.lang.String |
METER_ROUTES_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostname()
Returns the hostname of the server.
|
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Returns the metric registry.
|
void |
start()
Start the Ninja Metrics service.
|
void |
stop()
Stops the Ninja Metrics service.
|
static final java.lang.String METER_ALL_REQUESTS
static final java.lang.String COUNTER_ACTIVE_REQUESTS
static final java.lang.String METER_BAD_REQUESTS
static final java.lang.String METER_INTERNAL_SERVER_ERRORS
static final java.lang.String METER_ROUTES_NOT_FOUND
void start()
void stop()
com.codahale.metrics.MetricRegistry getMetricRegistry()
java.lang.String getHostname()
Copyright © 2014. All Rights Reserved.