Skip to main content Link Search Menu Expand Document (external link)

MetricRegistry overview

Added in v2.0.0


Table of contents


constructors

make

Signature

export declare const make: (_: void) => MetricRegistry

Added in v2.0.0

models

MetricRegistry (interface)

Signature

export interface MetricRegistry {
  readonly [MetricRegistryTypeId]: MetricRegistryTypeId
  snapshot(): Array<MetricPair.MetricPair.Untyped>
  get<Type extends MetricKeyType.MetricKeyType<any, any>>(
    key: MetricKey.MetricKey<Type>
  ): MetricHook.MetricHook<
    MetricKeyType.MetricKeyType.InType<(typeof key)["keyType"]>,
    MetricKeyType.MetricKeyType.OutType<(typeof key)["keyType"]>
  >
  getCounter<A extends number | bigint>(key: MetricKey.MetricKey.Counter<A>): MetricHook.MetricHook.Counter<A>
  getFrequency(key: MetricKey.MetricKey.Frequency): MetricHook.MetricHook.Frequency
  getGauge<A extends number | bigint>(key: MetricKey.MetricKey.Gauge<A>): MetricHook.MetricHook.Gauge<A>
  getHistogram(key: MetricKey.MetricKey.Histogram): MetricHook.MetricHook.Histogram
  getSummary(key: MetricKey.MetricKey.Summary): MetricHook.MetricHook.Summary
}

Added in v2.0.0

symbols

MetricRegistryTypeId

Signature

export declare const MetricRegistryTypeId: typeof MetricRegistryTypeId

Added in v2.0.0

MetricRegistryTypeId (type alias)

Signature

export type MetricRegistryTypeId = typeof MetricRegistryTypeId

Added in v2.0.0