Abstract
Protected
innerGets this metrics value in its internal representation.
The metric value.
Abstract
payloadGets this metrics value in its payload representation.
The metric value.
Sets this metrics value.
The value to set.
Abstract
validateValidates that a given value is in the correct format for this metrics internal representation.
This function should only check for validations that would prevent a metric from being recorded.
The value to verify.
Whether or not validation was successful.
Validates a given value using the validation function and throws in case it is not valid.
The value to verify.
v
if it is valid.
Generated using TypeDoc
The Metric class describes the shared behaviour amongst concrete metrics.
A concrete metric will always have two possible representations:
InternalRepresentation
PayloadRepresentation