Skip to main content Link Search Menu Expand Document (external link)

MetricLabel overview

Added in v2.0.0


Table of contents


constructors

make

Signature

export declare const make: (key: string, value: string) => MetricLabel

Added in 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
}

Added in v2.0.0

refinements

isMetricLabel

Signature

export declare const isMetricLabel: (u: unknown) => u is MetricLabel

Added in v2.0.0

symbols

MetricLabelTypeId

Signature

export declare const MetricLabelTypeId: typeof MetricLabelTypeId

Added in v2.0.0

MetricLabelTypeId (type alias)

Signature

export type MetricLabelTypeId = typeof MetricLabelTypeId

Added in v2.0.0