Erster Docker-Stand
This commit is contained in:
47
_node_modules/effect/src/MetricLabel.ts
generated
Normal file
47
_node_modules/effect/src/MetricLabel.ts
generated
Normal file
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* @since 2.0.0
|
||||
*/
|
||||
import type * as Equal from "./Equal.js"
|
||||
import * as internal from "./internal/metric/label.js"
|
||||
import type { Pipeable } from "./Pipeable.js"
|
||||
|
||||
/**
|
||||
* @since 2.0.0
|
||||
* @category symbols
|
||||
*/
|
||||
export const MetricLabelTypeId: unique symbol = internal.MetricLabelTypeId
|
||||
|
||||
/**
|
||||
* @since 2.0.0
|
||||
* @category symbols
|
||||
*/
|
||||
export type MetricLabelTypeId = typeof MetricLabelTypeId
|
||||
|
||||
/**
|
||||
* A `MetricLabel` represents a key value pair that allows analyzing metrics at
|
||||
* an additional level of granularity.
|
||||
*
|
||||
* For example if a metric tracks the response time of a service labels could
|
||||
* be used to create separate versions that track response times for different
|
||||
* clients.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @category models
|
||||
*/
|
||||
export interface MetricLabel extends Equal.Equal, Pipeable {
|
||||
readonly [MetricLabelTypeId]: MetricLabelTypeId
|
||||
readonly key: string
|
||||
readonly value: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.0.0
|
||||
* @category constructors
|
||||
*/
|
||||
export const make: (key: string, value: string) => MetricLabel = internal.make
|
||||
|
||||
/**
|
||||
* @since 2.0.0
|
||||
* @category refinements
|
||||
*/
|
||||
export const isMetricLabel: (u: unknown) => u is MetricLabel = internal.isMetricLabel
|
||||
Reference in New Issue
Block a user