io.vertx.reactivex.micrometer

## Class MetricsService

- java.lang.Object
- - io.vertx.reactivex.micrometer.MetricsService

-     public class MetricsService
      extends Object

  The metrics service mainly allows to return a snapshot of measured objects.
  This service is derived and adapted from `MetricsService` in the vertx-dropwizard-metrics module.

  NOTE: This class has been automatically generated from the `original` non RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<MetricsService>` | `__TYPE_ARG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MetricsService(MetricsService delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static MetricsService` | `create(Measured measured)` Creates a metric service for a given object.
    `boolean` | `equals(Object o)`
    `String` | `getBaseName()`
    `MetricsService` | `getDelegate()`
    `JsonObject` | `getMetricsSnapshot()` Will return the metrics that correspond with the `measured` object, null if no metrics is available.
    `JsonObject` | `getMetricsSnapshot(String baseName)` Will return the metrics that begins with the `baseName`, null if no metrics is available.
    `int` | `hashCode()`
    `Set<String>` | `metricsNames()`
    `static MetricsService` | `newInstance(MetricsService arg)`
    `String` | `toString()`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<MetricsService> __TYPE_ARG

  - ### Constructor Detail

    - #### MetricsService

          public MetricsService(MetricsService delegate)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public MetricsService getDelegate()

    - #### create

          public static MetricsService create(Measured measured)

      Creates a metric service for a given object.
      Parameters:
        `measured` - the measured object
      Returns:
        the metrics service

    - #### getBaseName

          public String getBaseName()

      Returns:
        the base name of the measured object

    - #### metricsNames

          public Set<String> metricsNames()

      Returns:
        the known metrics names by this service

    - #### getMetricsSnapshot

          public JsonObject getMetricsSnapshot()

      Will return the metrics that correspond with the `measured` object, null if no metrics is available.

      Returns:
        the map of metrics where the key is the name of the metric (excluding the base name unless for the Vert.x object) and the value is the json data representing that metric

    - #### getMetricsSnapshot

          public JsonObject getMetricsSnapshot(String baseName)

      Will return the metrics that begins with the `baseName`, null if no metrics is available.

      Parameters:
        `baseName` -
      Returns:
        the map of metrics where the key is the name of the metric and the value is the json data representing that metric

    - #### newInstance

          public static MetricsService newInstance(MetricsService arg)

Copyright © 2019 Eclipse. All rights reserved.