[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This webpage details the `MetricsServiceV2LimitedErrorCountRetryPolicy`, a class in the Google Cloud C++ client library for logging that controls retries for `MetricsServiceV2Connection` based on the number of errors encountered."],["The retry policy stops when a non-transient error occurs or when the number of transient errors exceeds a specified `maximum_failures` threshold."],["Transient errors are defined as those with the `kUnavailable` status code."],["The class provides methods to check the maximum number of allowed failures (`maximum_failures()`), handle failures (`OnFailure()`), check if the retry policy is exhausted (`IsExhausted()`), and determine if a failure is permanent (`IsPermanentFailure()`)."],["The user can use the `clone()` function to create a fresh instance of the policy, reset to its initial state."]]],[]]