Package org.apache.hadoop.metrics2
Interface MetricsInfo
- All Known Implementing Classes:
AbstractMetric,MetricsTag
@Public
@Evolving
public interface MetricsInfo
Interface to provide immutable metainfo for metrics.
-
Method Summary
Modifier and TypeMethodDescriptionTypically the description corresponds to annotationMetric.about()or the name of the class.name()Typically name corresponds to annotationMetric.value()or the name of the class.
-
Method Details
-
name
String name()Typically name corresponds to annotationMetric.value()or the name of the class.- Returns:
- the name of the metric/tag
-
description
String description()Typically the description corresponds to annotationMetric.about()or the name of the class.- Returns:
- the description of the metric/tag
-