Package org.apache.kafka.common.metrics
Class MetricConfig
- java.lang.Object
-
- org.apache.kafka.common.metrics.MetricConfig
-
public class MetricConfig extends Object
Configuration values for metrics
-
-
Constructor Summary
Constructors Constructor Description MetricConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
quota
public Quota quota()
-
quota
public MetricConfig quota(Quota quota)
-
eventWindow
public long eventWindow()
-
eventWindow
public MetricConfig eventWindow(long window)
-
timeWindowMs
public long timeWindowMs()
-
timeWindow
public MetricConfig timeWindow(long window, TimeUnit unit)
-
tags
public MetricConfig tags(Map<String,String> tags)
-
samples
public int samples()
-
samples
public MetricConfig samples(int samples)
-
recordLevel
public Sensor.RecordingLevel recordLevel()
-
recordLevel
public MetricConfig recordLevel(Sensor.RecordingLevel recordingLevel)
-
-