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

    Interface Histogram<LABELS>

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

    Type Parameters

    • LABELS extends string | undefined = undefined
    Index

    Methods

    Methods

    • Records a value in the histogram metric.

      Parameters

      • value: number

        The value to record in the histogram metric

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

        Optional labels to associate with the histogram metric

      Returns void