Module metric (3.12.1)
Stay organized with collections
Save and categorize content based on your preferences.
Define Cloud Logging API Metrics.
Classes
Metric(name, *, filter_=None, client=None, description="")
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["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-09-04 UTC."],[],[],null,["# Module metric (3.12.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.12.1 (latest)](/python/docs/reference/logging/latest/google.cloud.logging_v2.metric)\n- [3.12.0](/python/docs/reference/logging/3.12.0/google.cloud.logging_v2.metric)\n- [3.11.3](/python/docs/reference/logging/3.11.3/google.cloud.logging_v2.metric)\n- [3.10.0](/python/docs/reference/logging/3.10.0/google.cloud.logging_v2.metric)\n- [3.9.0](/python/docs/reference/logging/3.9.0/google.cloud.logging_v2.metric)\n- [3.8.0](/python/docs/reference/logging/3.8.0/google.cloud.logging_v2.metric)\n- [3.7.0](/python/docs/reference/logging/3.7.0/google.cloud.logging_v2.metric)\n- [3.6.0](/python/docs/reference/logging/3.6.0/google.cloud.logging_v2.metric)\n- [3.5.0](/python/docs/reference/logging/3.5.0/google.cloud.logging_v2.metric)\n- [3.4.0](/python/docs/reference/logging/3.4.0/google.cloud.logging_v2.metric)\n- [3.3.1](/python/docs/reference/logging/3.3.1/google.cloud.logging_v2.metric)\n- [3.2.5](/python/docs/reference/logging/3.2.5/google.cloud.logging_v2.metric)\n- [3.1.2](/python/docs/reference/logging/3.1.2/google.cloud.logging_v2.metric)\n- [3.0.0](/python/docs/reference/logging/3.0.0/google.cloud.logging_v2.metric)\n- [2.7.2](/python/docs/reference/logging/2.7.2/google.cloud.logging_v2.metric)\n- [2.6.0](/python/docs/reference/logging/2.6.0/google.cloud.logging_v2.metric)\n- [2.5.0](/python/docs/reference/logging/2.5.0/google.cloud.logging_v2.metric)\n- [2.4.0](/python/docs/reference/logging/2.4.0/google.cloud.logging_v2.metric)\n- [2.3.1](/python/docs/reference/logging/2.3.1/google.cloud.logging_v2.metric)\n- [2.2.0](/python/docs/reference/logging/2.2.0/google.cloud.logging_v2.metric)\n- [2.1.1](/python/docs/reference/logging/2.1.1/google.cloud.logging_v2.metric)\n- [2.0.2](/python/docs/reference/logging/2.0.2/google.cloud.logging_v2.metric)\n- [1.15.3](/python/docs/reference/logging/1.15.3/google.cloud.logging_v2.metric)\n- [1.14.0](/python/docs/reference/logging/1.14.0/google.cloud.logging_v2.metric)\n- [1.13.0](/python/docs/reference/logging/1.13.0/google.cloud.logging_v2.metric)\n- [1.12.1](/python/docs/reference/logging/1.12.1/google.cloud.logging_v2.metric) \nDefine Cloud Logging API Metrics.\n\nClasses\n-------\n\n### [Metric](/python/docs/reference/logging/latest/google.cloud.logging_v2.metric.Metric)\n\n Metric(name, *, filter_=None, client=None, description=\"\")\n\nMetrics represent named filters for log entries.\n\nSee\n\u003chttps://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics\u003e"]]