Interface Internal<T>

Type Parameters

  • T extends string

Hierarchy

  • Internal

Methods

  • Decrement with value

    Parameters

    • Optional value: number

      The value to decrement with

      Optional

    Returns void

  • Increment gauge with value

    Parameters

    • Optional value: number

      The value to increment with

      Optional

    Returns void

  • Set gauges value

    Parameters

    • value: number

      The value to set

    Returns void

  • Set gauge value to current epoch time in ms

    Returns void

  • Start a timer. Calling the returned function will set the gauge's value to the observed duration in seconds.

    Returns ((labels?) => number)

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

      • (labels?): number
      • Start a timer. Calling the returned function will set the gauge's value to the observed duration in seconds.

        Parameters

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

        Returns number

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

Generated using TypeDoc