Collection projects.metrics

Resource LogMetric

Describes a logs-based metric. The value of the metric is the number of log entries in your project that match a logs filter.

JSON representation
{
  "name": string,
  "description": string,
  "filter": string,
}
Field name Type Description
name string The client-assigned name for this metric, such as "severe_errors". Metric names are limited to 1000 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/\. The slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.
description string A description of this metric.
filter string An advanced logs filter. Example: "log:syslog AND metadata.severity>=ERROR".

Methods

Method Description
create Creates a logs-based metric.
delete Deletes a logs-based metric.
get Gets a logs-based metric.
list Lists the logs-based metrics associated with a project.
update Creates or updates a logs-based metric.