Struct google_logging2::LogMetric
[−]
[src]
pub struct LogMetric { pub filter: Option<String>, pub version: Option<String>, pub name: Option<String>, pub description: Option<String>, }
Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter in a given time interval.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- metrics create projects (request|response)
- metrics update projects (request|response)
- metrics get projects (response)
Fields
filter: Option<String>
Required. An advanced logs filter which is used to match log entries. Example: "resource.type=gae_app AND severity>=ERROR" The maximum length of the filter is 20000 characters.
version: Option<String>
Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter expression. When a value for this field is missing, the default value of V2 should be assumed.
name: Option<String>
Required. The client-assigned metric identifier. Examples: "error_count", "nginx/requests".Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.The metric identifier in this field must not be URL-encoded (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric identifier appears as the [METRIC_ID] part of a metric_name API parameter, then the metric identifier must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
description: Option<String>
Optional. A description of this metric, which is used in documentation.
Trait Implementations
impl Default for LogMetric
[src]
impl Clone for LogMetric
[src]
fn clone(&self) -> LogMetric
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more