Metric (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.metric

## Class Metric

- java.lang.Object
- - org.apache.zookeeper.server.metric.Metric

- Direct Known Subclasses:
    AvgMinMaxCounter, AvgMinMaxCounterSet, AvgMinMaxPercentileCounter, AvgMinMaxPercentileCounterSet, SimpleCounter

      public abstract class Metric
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Metric()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(int key, long value)`
    `void` | `add(long value)`
    `void` | `add(String key, long value)`
    `void` | `reset()`
    `abstract Map<String,Object>` | `values()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Metric

          public Metric()

  - ### Method Detail

    - #### add

          public void add(long value)

    - #### add

          public void add(int key,
                          long value)

    - #### add

          public void add(String key,
                          long value)

    - #### reset

          public void reset()

    - #### values

          public abstract Map<String,Object> values()

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.