This interface defines virtual methods for each of the user-facing overload sets in MetricsServiceV2Client. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type MetricsServiceV2Client.
[[["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 `MetricsServiceV2Connection` object, which provides an interface for the `MetricsServiceV2Client` in Google Cloud Logging."],["The `MetricsServiceV2Connection` enables custom behavior injection for testing, particularly using Google Mock objects, within the context of the `MetricsServiceV2Client`."],["The content includes links to documentation for a range of previous versions, including the latest release candidate, all pertaining to the `MetricsServiceV2Connection`."],["Key functions of this interface include `ListLogMetrics`, `GetLogMetric`, `CreateLogMetric`, `UpdateLogMetric`, `DeleteLogMetric`, `ListOperations`, `GetOperation`, and `CancelOperation`."],["`MakeMetricsServiceV2Connection()` can be used to generate a concrete instance of this interface, whereas `logging_v2_mocks::MockMetricsServiceV2Connection` can be used to generate mock objects for testing purposes."]]],[]]