public abstract class MetricsRecordBuilder extends Object
构造器和说明 |
---|
MetricsRecordBuilder() |
限定符和类型 | 方法和说明 |
---|---|
abstract MetricsRecordBuilder |
add(Metric metric)
Add a pre-made immutable metric object
|
abstract MetricsRecordBuilder |
add(MetricsTag tag)
Add an immutable metrics tag object
|
abstract MetricsRecordBuilder |
addCounter(String name,
String description,
int value)
Add an int counter metric
|
abstract MetricsRecordBuilder |
addCounter(String name,
String description,
long value)
Add an long counter metric
|
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
double value)
Add a double gauge metric
|
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
float value)
Add a float gauge metric
|
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
int value)
Add a int gauge metric
|
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
long value)
Add a long gauge metric
|
abstract MetricsRecordBuilder |
setContext(String value)
Set the context tag
|
abstract MetricsRecordBuilder |
tag(String name,
String description,
String value)
Add a metrics tag
|
public abstract MetricsRecordBuilder tag(String name, String description, String value)
name
- of the tagdescription
- of the tagvalue
- of the tagpublic abstract MetricsRecordBuilder add(MetricsTag tag)
tag
- a pre-made tag object (potentially save an object construction)public abstract MetricsRecordBuilder setContext(String value)
value
- of the contextpublic abstract MetricsRecordBuilder addCounter(String name, String description, int value)
name
- of the metricdescription
- of the metricvalue
- of the metricpublic abstract MetricsRecordBuilder addCounter(String name, String description, long value)
name
- of the metricdescription
- of the metricvalue
- of the metricpublic abstract MetricsRecordBuilder addGauge(String name, String description, int value)
name
- of the metricdescription
- of the metricvalue
- of the metricpublic abstract MetricsRecordBuilder addGauge(String name, String description, long value)
name
- of the metricdescription
- of the metricvalue
- of the metricpublic abstract MetricsRecordBuilder addGauge(String name, String description, float value)
name
- of the metricdescription
- of the metricvalue
- of the metricpublic abstract MetricsRecordBuilder addGauge(String name, String description, double value)
name
- of the metricdescription
- of the metricvalue
- of the metricpublic abstract MetricsRecordBuilder add(Metric metric)
metric
- the pre-made metric to save an object constructionCopyright © 2009 The Apache Software Foundation