Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T: SupportedLabeledTypes

Hierarchy

  • default

Indexable

[label: string]: T

Index

Constructors

constructor

Methods

Static Private createFromDynamicLabel

  • createFromDynamicLabel<T>(meta: CommonMetricData, submetricClass: T, label: string): InstanceType<T>
  • Create an instance of the submetric type for the provided dynamic label.

    Type parameters

    • T: new (...args: any) => 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.

Static Private createFromStaticLabel

  • createFromStaticLabel<T>(meta: CommonMetricData, submetricClass: T, allowedLabels: string[], label: string): InstanceType<T>
  • Create an instance of the submetric type for the provided static label.

    Type parameters

    • T: new (...args: any) => 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.

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Enumeration
  • Interface

Generated using TypeDoc