pub struct BackendServiceLogConfig {
pub enable: Option<bool>,
pub optional_fields: Option<Vec<String>>,
pub optional_mode: Option<String>,
pub sample_rate: Option<f32>,
}
Expand description
The available logging options for the load balancer traffic served by this backend service.
This type is not used in any activity, and only used as part of another schema.
Fields§
§enable: Option<bool>
Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
optional_fields: Option<Vec<String>>
This field can only be specified if logging is enabled for this backend service and “logConfig.optionalMode” was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
optional_mode: Option<String>
This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
sample_rate: Option<f32>
This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
Trait Implementations§
Source§impl Clone for BackendServiceLogConfig
impl Clone for BackendServiceLogConfig
Source§fn clone(&self) -> BackendServiceLogConfig
fn clone(&self) -> BackendServiceLogConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BackendServiceLogConfig
impl Debug for BackendServiceLogConfig
Source§impl Default for BackendServiceLogConfig
impl Default for BackendServiceLogConfig
Source§fn default() -> BackendServiceLogConfig
fn default() -> BackendServiceLogConfig
Source§impl<'de> Deserialize<'de> for BackendServiceLogConfig
impl<'de> Deserialize<'de> for BackendServiceLogConfig
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 BackendServiceLogConfig
impl Serialize for BackendServiceLogConfig
impl Part for BackendServiceLogConfig
Auto Trait Implementations§
impl Freeze for BackendServiceLogConfig
impl RefUnwindSafe for BackendServiceLogConfig
impl Send for BackendServiceLogConfig
impl Sync for BackendServiceLogConfig
impl Unpin for BackendServiceLogConfig
impl UnwindSafe for BackendServiceLogConfig
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