Module metric (1.14.0)

Define Stackdriver Logging API Metrics.

Classes

Metric

Metric(name, filter_=None, client=None, description="")
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.