Options
All
  • Public
  • Public/Protected
  • All
Menu

This is an internal metric representation for labeled metrics.

This can be used to instruct the validators to simply report whatever is stored internally, without performing any specific validation.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected _inner

_inner: JSONValue

Methods

get

payload

set

  • set(v: unknown): void
  • Sets this metrics value.

    throws

    In case the metric is not in the expected format.

    Parameters

    • v: unknown

      The value to set, must be in the exact internal representation of this metric.

    Returns void

validate

  • Validates that a given value is in the correct format for this metrics internal representation.

    Parameters

    • v: unknown

    Returns v is JSONValue

    A special Typescript value (which compiles down to a boolean) stating whether v is of the correct type.

Generated using TypeDoc