Struct google_logging2::api::DefaultSinkConfig
source · 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 more