Struct google_logging2::LogExclusion
source · pub struct LogExclusion {
pub filter: Option<String>,
pub disabled: Option<bool>,
pub name: Option<String>,
pub description: Option<String>,
}Expand description
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).
- 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§
§filter: Option<String>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)”
disabled: Option<bool>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.
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.
description: Option<String>Optional. A description of this exclusion.
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 moresource§impl Debug for LogExclusion
impl Debug for LogExclusion
source§impl Default for LogExclusion
impl Default for LogExclusion
source§fn default() -> LogExclusion
fn default() -> LogExclusion
source§impl<'de> Deserialize<'de> for LogExclusion
impl<'de> Deserialize<'de> for LogExclusion
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for LogExclusion
impl Serialize for LogExclusion
impl RequestValue for LogExclusion
impl ResponseResult for LogExclusion
Auto Trait Implementations§
impl Freeze for LogExclusion
impl RefUnwindSafe for LogExclusion
impl Send for LogExclusion
impl Sync for LogExclusion
impl Unpin for LogExclusion
impl UnwindSafe for LogExclusion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more