The key to add.
The value of the key.
Gets this metrics value in its internal representation.
The metric value.
Generate a new Event object, in the format expected on ping payloads.
Strips reserved extra keys and stringifies all event extras.
A new RecordedEvent object.
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.
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.
Generate a new Event object, stripped of Glean reserved extra keys.
A new Event object.
Generated using TypeDoc
Add another extra key to a RecordedEvent object.