A tracked counter loosely based on the Counter interface exposed by the prom-client module - counters are metrics that only go up

Hierarchy

  • Counter

Properties

Properties

increment: ((value?: number) => void)

Type declaration

    • (value?: number): void
    • Increment the metric by the passed value or 1

      Parameters

      • Optional value: number

      Returns void

reset: (() => void)

Type declaration

    • (): void
    • Reset this metric to its default value

      Returns void