Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MetricsService

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.

Hierarchy

  • MetricsService

Index

Methods

getBaseName

  • getBaseName(): string
  • Returns string

getMetricsSnapshot

  • getMetricsSnapshot(): {}
  • getMetricsSnapshot(baseName: string): {}
  • Will return the metrics that correspond with the measured object, null if no metrics is available.

    Returns {}

    • [key: string]: any
  • Will return the metrics that begins with the baseName, null if no metrics is available.

    Parameters

    • baseName: string

    Returns {}

    • [key: string]: any

metricsNames

  • metricsNames(): string
  • Returns string

Static create

  • Creates a metric service for a given object.

    Parameters

    • measured: Measured

    Returns MetricsService

Generated using TypeDoc