| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /home/livedhms/nodevenv/lmgt/22/lib/node_modules/effect/src/ |
| Current File : /home/livedhms/nodevenv/lmgt/22/lib/node_modules/effect/src/MetricLabel.ts |
/**
* @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