Type Parameters

  • T extends SupportedLabeledTypes

Indexable

[label: string]: T

Constructors

Methods

  • Create an instance of the submetric type for the provided dynamic label.

    Type Parameters

    • T extends (new (...args) => InstanceType<T>)

    Parameters

    • meta: CommonMetricData

      the CommonMetricData information for the metric.

    • submetricClass: T

      the class type for the submetric.

    • label: string

      the desired label to record to.

    Returns InstanceType<T>

    an instance of the submetric class type that allows to record data.

  • Create an instance of the submetric type for the provided static label.

    Type Parameters

    • T extends (new (...args) => InstanceType<T>)

    Parameters

    • meta: CommonMetricData

      the CommonMetricData information for the metric.

    • submetricClass: T

      the class type for the submetric.

    • allowedLabels: string[]

      the array of allowed labels.

    • label: string

      the desired label to record to.

    Returns InstanceType<T>

    an instance of the submetric class type that allows to record data.

Generated using TypeDoc