Module metric (1.12.1)

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
NameDescription
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 reload.

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.