class Google::Apis::LoggingV1beta3::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.
Attributes
A description of this metric. Corresponds to the JSON property `description` @return [String]
An [advanced logs filter](/logging/docs/view/advanced_filters). Example: `“log: syslog AND metadata.severity>=ERROR”`. Corresponds to the JSON property `filter` @return [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. Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File generated/google/apis/logging_v1beta3/classes.rb, line 748 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/logging_v1beta3/classes.rb, line 753 def update!(**args) @name = args[:name] unless args[:name].nil? @description = args[:description] unless args[:description].nil? @filter = args[:filter] unless args[:filter].nil? end