| Package | Description | 
|---|---|
| org.apache.hadoop.metrics2 | Metrics 2.0 | 
| org.apache.hadoop.metrics2.lib | A collection of library classes for implementing metrics sources | 
| org.apache.hadoop.metrics2.util | General helpers for implementing source and sinks | 
| Modifier and Type | Method and Description | 
|---|---|
| Collection<MetricsTag> | MetricsRecord. tags()Get the tags of the record
 Note: returning a collection instead of iterable as we
 need to use tags as keys (hence Collection#hashCode etc.) in maps | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | MetricsFilter. accepts(MetricsTag tag)Whether to accept the tag | 
| MetricsRecordBuilder | MetricStringBuilder. add(MetricsTag tag) | 
| MetricsRecordBuilder | MetricsJsonBuilder. add(MetricsTag tag) | 
| abstract MetricsRecordBuilder | MetricsRecordBuilder. add(MetricsTag tag)Add an immutable metrics tag object | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | MetricsFilter. accepts(Iterable<MetricsTag> tags)Whether to accept the tags | 
| Modifier and Type | Method and Description | 
|---|---|
| MetricsTag | MetricsRegistry. getTag(String name)Get a tag by name | 
| static MetricsTag | Interns. tag(MetricsInfo info,
   String value)Get a metrics tag. | 
| static MetricsTag | Interns. tag(String name,
   String description,
   String value)Get a metrics tag. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.metrics2.util.MetricsCache.Record | MetricsCache. get(String name,
   Collection<MetricsTag> tags)Get the cached record | 
Copyright © 2023 Apache Software Foundation. All rights reserved.