Struct gapi_grpc::google::logging::v2::LogExclusion[][src]

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

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.

Fields

name: 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.

description: String

Optional. A description of this exclusion.

filter: 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 query matches 99% of low-severity log entries from Google Cloud Storage buckets:

"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"

disabled: bool

Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can [update an exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the value of this field.

create_time: Option<Timestamp>

Output only. The creation timestamp of the exclusion.

This field may not be present for older exclusions.

update_time: Option<Timestamp>

Output only. The last update timestamp of the exclusion.

This field may not be present for older exclusions.

Trait Implementations

impl Clone for LogExclusion[src]

impl Debug for LogExclusion[src]

impl Default for LogExclusion[src]

impl Message for LogExclusion[src]

impl PartialEq<LogExclusion> for LogExclusion[src]

impl StructuralPartialEq 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]