public class MetricConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_SAMPLES |
Constructor and Description |
---|
MetricConfig() |
Modifier and Type | Method and Description |
---|---|
long |
eventWindow() |
MetricConfig |
eventWindow(long window) |
Quota |
quota() |
MetricConfig |
quota(Quota quota) |
Sensor.RecordingLevel |
recordLevel() |
MetricConfig |
recordLevel(Sensor.RecordingLevel recordingLevel) |
int |
samples() |
MetricConfig |
samples(int samples) |
Map<String,String> |
tags() |
MetricConfig |
tags(Map<String,String> tags) |
MetricConfig |
timeWindow(long window,
TimeUnit unit) |
long |
timeWindowMs() |
String |
toString() |
public static final int DEFAULT_NUM_SAMPLES
public Quota quota()
public MetricConfig quota(Quota quota)
public long eventWindow()
public MetricConfig eventWindow(long window)
public long timeWindowMs()
public MetricConfig timeWindow(long window, TimeUnit unit)
public MetricConfig tags(Map<String,String> tags)
public int samples()
public MetricConfig samples(int samples)
public Sensor.RecordingLevel recordLevel()
public MetricConfig recordLevel(Sensor.RecordingLevel recordingLevel)