public class MetricConfig extends Object
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() |
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)