libp2p
    Preparing search index...

    Interface MetricGroup<T>

    A group of related metrics loosely based on the interfaces exposed by the prom-client module

    interface MetricGroup<T extends string = any> {
        decrement(values: Partial<Record<T, number | true>>): void;
        increment(values: Partial<Record<T, number | true>>): void;
        reset(): void;
        timer(key: string): StopTimer;
        update(values: Partial<Record<T, number>>): void;
    }

    Type Parameters

    • T extends string = any
    Index

    Methods