Define Stackdriver Logging API Metrics.
Classes
Metric
Metric(name, filter_=None, client=None, description="")Metrics represent named filters for log entries.
See https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics
| Parameters | |
|---|---|
| Name | Description |
name |
str
the name of the metric |
filter_ |
str
the advanced logs filter expression defining the entries tracked by the metric. If not passed, the instance should already exist, to be refreshed via |
client |
Client
A client which holds credentials and project configuration for the metric (which requires a project). |
description |
str
an optional description of the metric. |