Protected
innerGets the datetime data as a Date object.
The object created here will be relative to local time. If the timezone at the time of recording is different, the timezone offset will be applied before transforming to an object.
A date object.
Private
dateISOStringPrivate
timePrivate
timezoneGets this metrics value in its internal representation.
The metric value.
Gets this metrics value in its payload representation.
For this metric, the payload is the timezone aware ISO date string truncated to the time unit given at the time of recording.
The timezone of the final string is the timezone at the time of recording.
The metric value.
Sets this metrics value.
The value to set.
Validates 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.
Static
fromStatic
fromGenerated using TypeDoc
The Metric class describes the shared behaviour amongst concrete metrics.
A concrete metric will always have two possible representations:
InternalRepresentation
PayloadRepresentation