Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Observer

Base interface for the Observer metrics.

Hierarchy

Implemented by

Index

Methods

Methods

clear

  • clear(): void

setCallback

  • setCallback(callback: (observerResult: ObserverResult) => void): void
  • Sets a callback where user can observe value for certain labels. The observers are called periodically to retrieve the value.

    Parameters

    • callback: (observerResult: ObserverResult) => void

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

    Returns void