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 details the \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e object, which is used with \u003ccode\u003eMetricsServiceV2Client\u003c/code\u003e for interacting with the Cloud Logging Metrics API.\u003c/p\u003e\n"],["\u003cp\u003eThe interface provides virtual methods corresponding to the user-facing overload sets found in \u003ccode\u003eMetricsServiceV2Client\u003c/code\u003e, making it useful for injecting custom behaviors during testing.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a concrete implementation of \u003ccode\u003eMetricsServiceV2Connection\u003c/code\u003e using the \u003ccode\u003eMakeMetricsServiceV2Connection()\u003c/code\u003e function, or use the mock version with \u003ccode\u003elogging_v2_mocks::MockMetricsServiceV2Connection\u003c/code\u003e for testing.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists multiple previous versions, ranging from the latest release candidate (\u003ccode\u003e2.37.0-rc\u003c/code\u003e) to \u003ccode\u003e2.11.0\u003c/code\u003e, with links to the documentation for each.\u003c/p\u003e\n"],["\u003cp\u003eThe page also has a list of functions, such as options(), ListLogMetrics, GetLogMetric, CreateLogMetric, UpdateLogMetric and DeleteLogMetric, which are virtual methods, and details what each parameter and return type is.\u003c/p\u003e\n"]]],[],null,[]]