Interface Internal<T>

Type Parameters

  • T extends string

Hierarchy

  • Internal

Methods

  • Observe value

    Parameters

    • value: number

      The value to observe

    Returns void

  • Start a timer. Calling the returned function will observe the duration in seconds in the histogram.

    Returns ((labels?) => void)

    Function to invoke when timer should be stopped. The value it returns is the timed duration.

      • (labels?): void
      • Start a timer. Calling the returned function will observe the duration in seconds in the histogram.

        Parameters

        • Optional labels: Partial<Record<T, string | number>>

          Object with label keys and values

          Optional

        Returns void

        Function to invoke when timer should be stopped. The value it returns is the timed duration.

Generated using TypeDoc