Metrics (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.metrics2.annotation, annotation type: Metrics

Package org.apache.hadoop.metrics2.annotation

# Annotation Interface Metrics

@Public @Evolving @Documented @Target(TYPE) @Retention(RUNTIME) public @interface Metrics
Annotation interface for a group of metrics

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `String`
  `context`

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `String`
  `about`
  `String`
  `name`

- ## Element Details

  - ### context

    String context
    Returns:
      the context name for a group of metrics

- - ### name

    String name
    Returns:
      the (record) name of the metrics
    Default:
      ""

  - ### about

    String about
    Returns:
      the optional description of metrics
    Default:
      ""