pub struct DefaultSinkConfig {
pub exclusions: Option<Vec<LogExclusion>>,
pub filter: Option<String>,
pub mode: Option<String>,
}
Expand description
Describes the custom _Default sink configuration that is used to override the built-in _Default sink configuration in newly created resource containers, such as projects or folders.
This type is not used in any activity, and only used as part of another schema.
Fields§
§exclusions: Option<Vec<LogExclusion>>
Optional. Specifies the set of exclusions to be added to the _Default sink in newly created resource containers.
filter: Option<String>
Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=“projects/[PROJECT_ID]/logs/[LOG_ID]” AND severity>=ERRORTo match all logs, don’t add exclusions and use the following line as the value of filter:logName:*Cannot be empty or unset when the value of mode is OVERWRITE.
mode: Option<String>
Required. Determines the behavior to apply to the built-in _Default sink inclusion filter.Exclusions are always appended, as built-in _Default sinks have no exclusions.
Trait Implementations§
Source§impl Clone for DefaultSinkConfig
impl Clone for DefaultSinkConfig
Source§fn clone(&self) -> DefaultSinkConfig
fn clone(&self) -> DefaultSinkConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DefaultSinkConfig
impl Debug for DefaultSinkConfig
Source§impl Default for DefaultSinkConfig
impl Default for DefaultSinkConfig
Source§fn default() -> DefaultSinkConfig
fn default() -> DefaultSinkConfig
Source§impl<'de> Deserialize<'de> for DefaultSinkConfig
impl<'de> Deserialize<'de> for DefaultSinkConfig
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 DefaultSinkConfig
impl Serialize for DefaultSinkConfig
impl Part for DefaultSinkConfig
Auto Trait Implementations§
impl Freeze for DefaultSinkConfig
impl RefUnwindSafe for DefaultSinkConfig
impl Send for DefaultSinkConfig
impl Sync for DefaultSinkConfig
impl Unpin for DefaultSinkConfig
impl UnwindSafe for DefaultSinkConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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