MetricRegistry
Constructors
Models
MetricRegistry interface
Added in v2.0.0
Source
Signature
interface MetricRegistry {
readonly [MetricRegistryTypeId]: typeof MetricRegistryTypeId;
get<Type extends MetricKeyType<any, any>>(
key: MetricKey<Type>,
): MetricHook<InType<Type>, OutType<Type>>;
getCounter<A extends number | bigint>(key: Counter<A>): Counter<A>;
getFrequency(key: Frequency): Frequency;
getGauge<A extends number | bigint>(key: Gauge<A>): Gauge<A>;
getHistogram(key: Histogram): Histogram;
getSummary(key: Summary): Summary;
snapshot(): Array<Untyped>;
}Symbols
MetricRegistryTypeId
Added in v2.0.0
Source
Signature
declare const MetricRegistryTypeId: unique symbol;MetricRegistryTypeId type
Added in v2.0.0
Source
Signature
type MetricRegistryTypeId = typeof MetricRegistryTypeId;