Skip to content

@ralphschuler.prom metrics decorator.<internal>.Histogram.Internal

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: Internal<T>

<internal>.Histogram.Internal

Type parameters

Name Type
T extends string

Table of contents

Methods

Methods

observe

observe(value): void

Observe value

Parameters

Name Type Description
value number The value to observe

Returns

void

Defined in

node_modules/prom-client/index.d.ts:470


startTimer

startTimer(): (labels?: Partial<Record<T, string | number>>) => void

Start a timer. Calling the returned function will observe the duration in seconds in the histogram.

Returns

fn

Function to invoke when timer should be stopped. The value it returns is the timed duration.

▸ (labels?): void

Start a timer. Calling the returned function will observe the duration in seconds in the histogram.

Parameters
Name Type Description
labels? Partial<Record<T, string | number>> Object with label keys and values
Returns

void

Function to invoke when timer should be stopped. The value it returns is the timed duration.

Defined in

node_modules/prom-client/index.d.ts:479

Typescript Libraries

Modules

Namespaces

Clone this wiki locally