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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e object, which is associated with the \u003ccode\u003eMetricsServiceV2Client\u003c/code\u003e for Google Cloud Logging in C++.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e defines virtual methods for each user-facing overload set within \u003ccode\u003eMetricsServiceV2Client\u003c/code\u003e, enabling the injection of custom behavior for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eYou can create concrete instances of \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e using \u003ccode\u003eMakeMetricsServiceV2Connection()\u003c/code\u003e, or mock it via \u003ccode\u003elogging_v2_mocks::MockMetricsServiceV2Connection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page documents versions of the \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e object, ranging from version \u003ccode\u003e2.37.0-rc\u003c/code\u003e to version \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also includes details for the following functions: \u003ccode\u003eoptions()\u003c/code\u003e, \u003ccode\u003eListLogMetrics()\u003c/code\u003e, \u003ccode\u003eGetLogMetric()\u003c/code\u003e, \u003ccode\u003eCreateLogMetric()\u003c/code\u003e, \u003ccode\u003eUpdateLogMetric()\u003c/code\u003e, and \u003ccode\u003eDeleteLogMetric()\u003c/code\u003e, each with their parameters and return types clearly laid out.\u003c/p\u003e\n"]]],[],null,[]]