BSB Node.js Type Definitions
    Preparing search index...

    Interface Counter<LABELS>

    interface Counter<LABELS extends string | undefined = undefined> {
        increment(
            value?: number,
            labels?: LABELS extends string
                ? Partial<Record<LABELS<LABELS>, string>>
                : never,
        ): void;
    }

    Type Parameters

    • LABELS extends string | undefined = undefined
    Index

    Methods

    Methods

    • Adds a value to the counter metric.

      Parameters

      • Optionalvalue: number

        The value to add to the counter metric

      • Optionallabels: LABELS extends string ? Partial<Record<LABELS<LABELS>, string>> : never

        Optional labels to associate with the counter metric

      Returns void