public class MetricConfig
extends java.lang.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) |
java.util.Map<java.lang.String,java.lang.String> |
tags() |
MetricConfig |
tags(java.util.Map<java.lang.String,java.lang.String> tags) |
MetricConfig |
timeWindow(long window,
java.util.concurrent.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, java.util.concurrent.TimeUnit unit)
public java.util.Map<java.lang.String,java.lang.String> tags()
public MetricConfig tags(java.util.Map<java.lang.String,java.lang.String> tags)
public int samples()
public MetricConfig samples(int samples)
public Sensor.RecordingLevel recordLevel()
public MetricConfig recordLevel(Sensor.RecordingLevel recordingLevel)