Struct google_logging2_beta1::LogMetric [] [src]

pub struct LogMetric {
    pub filter: Option<String>,
    pub version: Option<String>,
    pub description: Option<String>,
    pub name: 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).

Fields

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.

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.

Optional. A description of this metric, which is used in documentation.

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".

Trait Implementations

impl Default for LogMetric
[src]

Returns the "default value" for a type. Read more

impl Clone for LogMetric
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LogMetric
[src]

Formats the value using the given formatter.

impl RequestValue for LogMetric
[src]

impl ResponseResult for LogMetric
[src]