-
Notifications
You must be signed in to change notification settings - Fork 0
@ralphschuler.prom metrics decorator.<internal>.Histogram
@ralphschuler/prom-metrics-decorator.<internal>.Histogram
A histogram samples observations (usually things like request durations or response sizes) and counts them in configurable buckets
Name | Type |
---|---|
T |
extends string = string
|
• new Histogram<T
>(configuration
): Histogram
<T
>
Name | Type |
---|---|
T |
extends string = string
|
Name | Type | Description |
---|---|---|
configuration |
HistogramConfiguration <T > |
Configuration when creating the Histogram. Name and Help is mandatory |
Histogram
<T
>
node_modules/prom-client/index.d.ts:399
▸ get(): Promise
<MetricObjectWithValues
<MetricValueWithName
<T
>>>
Get histogram metric object
Promise
<MetricObjectWithValues
<MetricValueWithName
<T
>>>
node_modules/prom-client/index.d.ts:416
▸ labels(...values
): Internal
<T
>
Return the child for given labels
Name | Type | Description |
---|---|---|
...values |
string [] |
Label values |
Internal
<T
>
Configured histogram with given labels
node_modules/prom-client/index.d.ts:442
▸ labels(labels
): Internal
<T
>
Return the child for given labels
Name | Type | Description |
---|---|---|
labels |
Partial <Record <T , string | number >> |
Object with label keys and values |
Internal
<T
>
Configured counter with given labels
node_modules/prom-client/index.d.ts:449
▸ observe(value
): void
Observe value
Name | Type | Description |
---|---|---|
value |
number |
The value to observe |
void
node_modules/prom-client/index.d.ts:405
▸ observe(labels
, value
): void
Observe value for given labels
Name | Type | Description |
---|---|---|
labels |
Partial <Record <T , string | number >> |
Object with label keys and values |
value |
number |
The value to observe |
void
node_modules/prom-client/index.d.ts:411
▸ remove(...values
): void
Remove metrics for the given label values
Name | Type | Description |
---|---|---|
...values |
string [] |
Label values |
void
node_modules/prom-client/index.d.ts:455
▸ remove(labels
): void
Remove metrics for the given label values
Name | Type | Description |
---|---|---|
labels |
Partial <Record <T , string | number >> |
Object with label keys and values |
void
node_modules/prom-client/index.d.ts:461
▸ reset(): void
Reset histogram values
void
node_modules/prom-client/index.d.ts:430
▸ startTimer(labels?
): (labels?
: Partial
<Record
<T
, string
| number
>>) => number
Start a timer. Calling the returned function will observe the duration in seconds in the histogram.
Name | Type | Description |
---|---|---|
labels? |
Partial <Record <T , string | number >> |
Object with label keys and values |
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 histogram.
Name | Type | Description |
---|---|---|
labels? |
Partial <Record <T , string | number >> |
Object with label keys and values |
number
Function to invoke when timer should be stopped. The value it returns is the timed duration.
node_modules/prom-client/index.d.ts:425
▸ zero(labels
): void
Initialize the metrics for the given combination of labels to zero
Name | Type |
---|---|
labels |
Partial <Record <T , string | number >> |
void
node_modules/prom-client/index.d.ts:435
- @ralphschuler/ai-function-caller
- index
- types/AIFunction
- types/Message
- @ralphschuler/assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- error
- index
- util
- @ralphschuler/better-map
- @ralphschuler/better-set
- @ralphschuler/binary-serializer
- @ralphschuler/bit-mask
- @ralphschuler/complex-compare
- @ralphschuler/i811n
- @ralphschuler/logger
- Color
- ColorMap
- Logger
- animations/BallonAnimation
- animations/BaseAnimation
- animations/BombAnimation
- animations/BouncingBallAnimation
- animations/ClockAnimation
- animations/DotsAnimation
- animations/HorizontalBarAnimation
- animations/PongAnimation
- animations/ProgressAnimation
- animations/ProgressBarAnimation
- animations/SpinnerAnimation
- animations/VerticalBarAnimation
- enums/LogLevel
- index
- interfaces/IColor
- interfaces/IMessage
- types/ColorName
- types/Colors
- @ralphschuler/lsystem
- @ralphschuler/mixin-class-factory
- @ralphschuler/neuronal-network
- @ralphschuler/parser-combinator
- index
- inputTypes
- parser
- unicode
- @ralphschuler/prom-metrics-decorator
- @ralphschuler/prom-metrics-parser
- @ralphschuler/random
- PseudoRandomItemSelector
- PseudoRandomNumberGenerator
- Seed
- index
- strategies
- strategy
- strategy
- strategy
- strategy
- strategy
- strategy
- types
- type
- type
- type
- @ralphschuler/safe-array
- @ralphschuler/slot-mashine
- @ralphschuler/state-store
- StateStore
- index
- type
- type
- type
- type
- type
- type
- type
- type
- util
- @ralphschuler/stats-tracker
- @ralphschuler/ts-error
- error
- index
- type
- util
- util
- util
- util
- @ralphschuler/webgl-sand-engine
- index
- pixel-renderer
- @ralphschuler/webgl-shader-factory
- "node:stream/consumers"
- "node:stream/promises"
- ChatCompletionSnapshot
- Choice
- Message
- ToolCall
- EventEmitter
- FormData
- OpenAI
- OpenAI
- Audio
- Speech
- Transcriptions
- Translations
- Beta
- Assistants
- Assistant
- AssistantCreateParams
- AssistantUpdateParams
- Files
- Chat
- Threads
- Messages
- Files
- MessageContentImageFile
- MessageContentText
- Text
- FileCitation
- FilePath
- Runs
- RequiredActionFunctionToolCall
- Run
- RequiredAction
- RunCreateParams
- RunSubmitToolOutputsParams
- Steps
- CodeToolCall
- CodeInterpreter
- Image
- FunctionToolCall
- MessageCreationStepDetails
- RunStep
- ThreadCreateAndRunParams
- Thread
- ThreadCreateParams
- Chat
- Completions
- ChatCompletion
- ChatCompletionAssistantMessageParam
- ChatCompletionChunk
- Choice
- Delta
- ToolCall
- ChatCompletionContentPartImage
- ChatCompletionCreateParams
- ChatCompletionMessage
- ChatCompletionMessageToolCall
- ChatCompletionNamedToolChoice
- Completions
- CompletionChoice
- CompletionCreateParams
- Edits
- Edit
- Embeddings
- CreateEmbeddingResponse
- Files
- FineTunes
- FineTune
- FineTuneCreateParams
- FineTuneListEventsParams
- FineTuning
- Jobs
- FineTuningJob
- JobCreateParams
- Images
- Models
- Moderations
- Moderation
- internal
- finished
- pipeline
- "node:stream/consumers"
- "node:stream/promises"
- EventEmitter
- internal
- finished
- pipeline
- Counter
- Gauge
- Histogram
- Summary