glean / mozilla.telemetry.glean.private / LabeledMetricType / testGetNumRecordedErrors

testGetNumRecordedErrors

@JvmOverloads fun testGetNumRecordedErrors(errorType: ErrorType, pingName: String = sendInPings.first()): Int

Returns the number of errors recorded for the given metric.

Parameters

errorType - The type of the error recorded.

pingName - represents the name of the ping to retrieve the metric for. Defaults to the first value in sendInPings.

Return
the number of errors recorded for the metric.