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\u003eThe \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e object provides an interface for interacting with the \u003ccode\u003eMetricsServiceV2Client\u003c/code\u003e in the Google Cloud Logging API.\u003c/p\u003e\n"],["\u003cp\u003eThis interface allows for customization and testing of the \u003ccode\u003eMetricsServiceV2Client\u003c/code\u003e by enabling the injection of custom behaviors, such as mock objects.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides access to documentation for multiple versions of the library, with version \u003ccode\u003e2.37.0-rc\u003c/code\u003e being the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e offers virtual methods for managing log metrics, such as creating, updating, getting, listing, and deleting log metrics, as well as methods for managing operations.\u003c/p\u003e\n"],["\u003cp\u003eA concrete instance of the connection can be made via the \u003ccode\u003eMakeMetricsServiceV2Connection()\u003c/code\u003e function, while the \u003ccode\u003elogging_v2_mocks::MockMetricsServiceV2Connection\u003c/code\u003e class is designed for mocking purposes.\u003c/p\u003e\n"]]],[],null,[]]