Skip to content

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

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

Interface: Internal<T>

<internal>.Summary.Internal

Type parameters

Name Type
T extends string

Table of contents

Methods

Methods

observe

observe(value): void

Observe value in summary

Parameters

Name Type Description
value number The value to observe

Returns

void

Defined in

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


startTimer

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

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

Returns

fn

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

▸ (labels?): number

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

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

number

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:580

Typescript Libraries

Modules

Namespaces

Clone this wiki locally