public final class Metrics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Metrics.Context
An auto-closeable class that manages timers for both the overall system as well as specific application.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SYSTEM_METRICS_NAME
The name of the default system @{link MetricRegistry}.
|
| Modifier and Type | Method and Description |
|---|---|
static com.codahale.metrics.Counter |
counter(String appid,
Class<?> clazz,
String... names)
Creates a new counter for a particular class and method for a specific application.
|
static Metrics.Context |
time(String appid,
Class<?> clazz,
String... names)
Instantiate timing of a particular class and method for a specific application.
|
public static final String SYSTEM_METRICS_NAME
public static Metrics.Context time(String appid, Class<?> clazz, String... names)
appid - the application that invoked the requestclazz - the Class to be timednames - one or more unique names to identify the timer - usually a method namepublic static com.codahale.metrics.Counter counter(String appid, Class<?> clazz, String... names)
appid - the application that invoked the requestclazz - the Class to be countednames - one or more unique names to identify the counter - usually a method nameCopyright © 2018 Erudika. All rights reserved.