MetricLabel.ts overview
Since v2.0.0
Exports Grouped by Category
constructors
make
Signature
declare const make: (key: string, value: string) => MetricLabel
Since v2.0.0
models
MetricLabel (interface)
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.
Signature
export interface MetricLabel extends Equal.Equal, Pipeable {
readonly [MetricLabelTypeId]: MetricLabelTypeId
readonly key: string
readonly value: string
}
Since v2.0.0
refinements
isMetricLabel
Signature
declare const isMetricLabel: (u: unknown) => u is MetricLabel
Since v2.0.0
symbols
MetricLabelTypeId
Signature
declare const MetricLabelTypeId: unique symbol
Since v2.0.0
MetricLabelTypeId (type alias)
Signature
type MetricLabelTypeId = typeof MetricLabelTypeId
Since v2.0.0