/// <summary> /// Returns the number of errors recorded for the given metric. /// </summary> /// <param name="errorType">the type of the error recorded.</param> /// <param name="pingName">represents the name of the ping to retrieve the metric for. /// Defaults to the first value in `sendInPings`.</param> /// <returns>the number of errors recorded for the metric.</returns> public Int32 TestGetNumRecordedErrors(Testing.ErrorType errorType, string pingName = null) { Dispatchers.AssertInTestingMode(); string ping = pingName ?? sendInPings[0]; return(LibGleanFFI.glean_counter_test_get_num_recorded_errors( handle, (int)errorType, ping )); }