Private
#innerExplicitly sets the timespan value.
This API should only be used if your library or application requires recording times in a way that can not make use of InternalTimespanMetricType#start/InternalTimespanMetricType#stop.
Care should be taken using this if the ping lifetime might contain more than one timespan measurement. To be safe, this function should generally be followed by sending a custom ping containing the timespan.
The elapsed time to record, in nanoseconds.
Test-only API
Returns the number of errors recorded for the given metric.
The type of the error recorded.
represents the name of the ping to retrieve the metric for.
Defaults to the first value in sendInPings
.
the number of errors recorded for the metric.
Test-only API.**
Gets the currently stored value as a number.
This doesn't clear the stored value.
the ping from which we want to retrieve this metrics value from.
Defaults to the first value in sendInPings
.
The value found in storage or undefined
if nothing was found.
Generated using TypeDoc
A timespan metric.
Timespans are used to make a measurement of how much time is spent in a particular task.