Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MetricUtils

Hierarchy

  • MetricUtils

Index

Methods

add

  • add(value: number, labels: Labels): void
  •  Adds the given value to the current value. Values cannot be negative.

    Parameters

    • value: number
    • labels: Labels

    Returns void

record

set

  • set(value: number, labels: Labels): void

setCallback

  • setCallback(callback: function): void
  • Sets a callback where user can observe value for certain labels

    Parameters

    • callback: function

      a function that will be called once to set observers for values

    Returns void