42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
/**
|
|
* @since 2.0.0
|
|
*/
|
|
import type * as Equal from "./Equal.js";
|
|
import type { Pipeable } from "./Pipeable.js";
|
|
/**
|
|
* @since 2.0.0
|
|
* @category symbols
|
|
*/
|
|
export declare const MetricLabelTypeId: unique symbol;
|
|
/**
|
|
* @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 declare const make: (key: string, value: string) => MetricLabel;
|
|
/**
|
|
* @since 2.0.0
|
|
* @category refinements
|
|
*/
|
|
export declare const isMetricLabel: (u: unknown) => u is MetricLabel;
|
|
//# sourceMappingURL=MetricLabel.d.ts.map
|