Validates that a given value is in the correct internal representation format for a metric of a given type.
The type of the metric to validate
The value to verify
Whether or not v
is of the correct type.
Validates that a given value is a positive integer.
The value to validate
Whether or not to consider 0 a valid value, defaults to true
A validation result
Validates that a given value is a string.
The value to validate
A validation result
Generated using TypeDoc
A metric factory function.
Context.supportedMetrics
;v
is not in the correct representation for the wanted metric type.