-
Notifications
You must be signed in to change notification settings - Fork 0
@ralphschuler.prom metrics decorator.<internal>.Registry
@ralphschuler/prom-metrics-decorator.<internal>.Registry
Container for all registered metrics
- clear
- getMetricsAsArray
- getMetricsAsJSON
- getSingleMetric
- getSingleMetricAsString
- metrics
- registerMetric
- removeSingleMetric
- resetMetrics
- setDefaultLabels
- merge
• new Registry(): Registry
• contentType: string
Gets the Content-Type of the metrics for use in the response headers.
node_modules/prom-client/index.d.ts:67
▸ clear(): void
Remove all metrics from the registry
void
node_modules/prom-client/index.d.ts:16
▸ getMetricsAsArray(): MetricObject[]
Get all metrics as objects
node_modules/prom-client/index.d.ts:37
▸ getMetricsAsJSON(): Promise<MetricObjectWithValues<MetricValue<string>>[]>
Get all metrics as objects
Promise<MetricObjectWithValues<MetricValue<string>>[]>
node_modules/prom-client/index.d.ts:32
▸ getSingleMetric<T>(name): undefined | Metric<T>
Get a single metric
| Name | Type |
|---|---|
T |
extends string
|
| Name | Type | Description |
|---|---|---|
name |
string |
The name of the metric |
undefined | Metric<T>
node_modules/prom-client/index.d.ts:49
▸ getSingleMetricAsString(name): Promise<string>
Get a string representation of a single metric by name
| Name | Type | Description |
|---|---|---|
name |
string |
The name of the metric |
Promise<string>
node_modules/prom-client/index.d.ts:62
▸ metrics(): Promise<string>
Get string representation for all metrics
Promise<string>
node_modules/prom-client/index.d.ts:11
▸ registerMetric<T>(metric): void
Register metric to register
| Name | Type |
|---|---|
T |
extends string
|
| Name | Type | Description |
|---|---|---|
metric |
Metric<T> |
Metric to add to register |
void
node_modules/prom-client/index.d.ts:27
▸ removeSingleMetric(name): void
Remove a single metric
| Name | Type | Description |
|---|---|---|
name |
string |
The name of the metric to remove |
void
node_modules/prom-client/index.d.ts:43
▸ resetMetrics(): void
Reset all metrics in the registry
void
node_modules/prom-client/index.d.ts:21
▸ setDefaultLabels(labels): void
Set static labels to every metric emitted by this registry
| Name | Type | Description |
|---|---|---|
labels |
Object |
of name/value pairs: { defaultLabel: "value", anotherLabel: "value 2" } |
void
node_modules/prom-client/index.d.ts:56
▸ merge(registers): Registry
Merge registers
| Name | Type | Description |
|---|---|---|
registers |
Registry[] |
The registers you want to merge together |
node_modules/prom-client/index.d.ts:73
- @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