pub struct LogExclusion {
pub create_time: Option<DateTime<Utc>>,
pub description: Option<String>,
pub disabled: Option<bool>,
pub filter: Option<String>,
pub name: Option<String>,
pub update_time: Option<DateTime<Utc>>,
}Expand description
Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don’t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
§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).
- exclusions create billing accounts (request|response)
- exclusions get billing accounts (response)
- exclusions patch billing accounts (request|response)
- create exclusions (request|response)
- get exclusions (response)
- patch exclusions (request|response)
- exclusions create folders (request|response)
- exclusions get folders (response)
- exclusions patch folders (request|response)
- exclusions create organizations (request|response)
- exclusions get organizations (response)
- exclusions patch organizations (request|response)
- exclusions create projects (request|response)
- exclusions get projects (response)
- exclusions patch projects (request|response)
Fields§
§create_time: Option<DateTime<Utc>>Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
description: Option<String>Optional. A description of this exclusion.
disabled: Option<bool>Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
filter: Option<String>Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
name: Option<String>Optional. 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. First character has to be alphanumeric.
update_time: Option<DateTime<Utc>>Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
Trait Implementations§
Source§impl Clone for LogExclusion
impl Clone for LogExclusion
Source§fn clone(&self) -> LogExclusion
fn clone(&self) -> LogExclusion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more