[−][src]Struct google_logging2::LogExclusion
Specifies a set of log entries that are not to be stored in Logging. If your GCP resource receives a large volume of logs, you can use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Note that organization-level and folder-level exclusions don't apply to child resources, and that you can't exclude audit log entries.
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).
- patch exclusions (request|response)
- exclusions get folders (response)
- exclusions create organizations (request|response)
- exclusions get projects (response)
- exclusions create projects (request|response)
- create exclusions (request|response)
- exclusions patch projects (request|response)
- exclusions patch folders (request|response)
- exclusions patch organizations (request|response)
- exclusions get billing accounts (response)
- exclusions patch billing accounts (request|response)
- exclusions get organizations (response)
- exclusions create billing accounts (request|response)
- get exclusions (response)
- exclusions create folders (request|response)
Fields
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)"
update_time: Option<String>
Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
description: Option<String>
Optional. A description of this exclusion.
create_time: Option<String>
Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
name: Option<String>
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. First character has to be alphanumeric.
Trait Implementations
impl Clone for LogExclusion
[src]
fn clone(&self) -> LogExclusion
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LogExclusion
[src]
impl Default for LogExclusion
[src]
fn default() -> LogExclusion
[src]
impl<'de> Deserialize<'de> for LogExclusion
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for LogExclusion
[src]
impl ResponseResult for LogExclusion
[src]
impl Serialize for LogExclusion
[src]
Auto Trait Implementations
impl RefUnwindSafe for LogExclusion
impl Send for LogExclusion
impl Sync for LogExclusion
impl Unpin for LogExclusion
impl UnwindSafe for LogExclusion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,