public class MetricsHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPERATION_DIMENSION_NAME |
static java.lang.String |
SUCCESS |
static java.lang.String |
TIME |
| Constructor and Description |
|---|
MetricsHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSuccessAndLatency(long startTimeMillis,
boolean success) |
static void |
addSuccessAndLatency(java.lang.String prefix,
long startTimeMillis,
boolean success) |
static void |
addSuccessAndLatencyPerShard(java.lang.String shardId,
java.lang.String prefix,
long startTimeMillis,
boolean success) |
static void |
endScope() |
static IMetricsScope |
getMetricsScope() |
static IMetricsScope |
startScope(IMetricsFactory factory) |
static IMetricsScope |
startScope(IMetricsFactory factory,
java.lang.String operation) |
public static final java.lang.String OPERATION_DIMENSION_NAME
public static final java.lang.String TIME
public static final java.lang.String SUCCESS
public static IMetricsScope startScope(IMetricsFactory factory)
public static IMetricsScope startScope(IMetricsFactory factory, java.lang.String operation)
public static IMetricsScope getMetricsScope()
public static void addSuccessAndLatency(long startTimeMillis,
boolean success)
public static void addSuccessAndLatency(java.lang.String prefix,
long startTimeMillis,
boolean success)
public static void addSuccessAndLatencyPerShard(java.lang.String shardId,
java.lang.String prefix,
long startTimeMillis,
boolean success)
public static void endScope()