bullmq - v5.68.0
    Preparing search index...

    Interface Counter

    Counter metric interface

    A counter is a cumulative metric that represents a single monotonically increasing value. Counters are typically used to count requests, completed tasks, errors, etc.

    interface Counter {
        add(value: number, attributes?: Attributes): void;
    }
    Index

    Methods

    Methods

    • Adds a value to the counter.

      Parameters

      • value: number

        the value to add (must be non-negative)

      • Optionalattributes: Attributes

        optional attributes to associate with this measurement

      Returns void