Struct google_logging2::LogExclusion[][src]

pub struct LogExclusion {
    pub filter: Option<String>,
    pub disabled: Option<bool>,
    pub name: Option<String>,
    pub description: Option<String>,
}

Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded.

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 that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"

Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can use exclusions.patch to change the value of this field.

Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

Optional. A description of this exclusion.

Trait Implementations

impl Default for LogExclusion
[src]

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

impl Clone for LogExclusion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LogExclusion
[src]

Formats the value using the given formatter. Read more

impl RequestValue for LogExclusion
[src]

impl ResponseResult for LogExclusion
[src]

Auto Trait Implementations