pub struct LoggingGenericCommon {
pub message_type: Option<MessageType>,
pub timestamp_format: Option<String>,
pub period: Option<i32>,
pub gzip_level: Option<i32>,
pub compression_codec: Option<CompressionCodec>,
}
Fields§
§message_type: Option<MessageType>
How the message should be formatted.
timestamp_format: Option<String>
A timestamp format
period: Option<i32>
How frequently log files are finalized so they can be available for reading (in seconds).
gzip_level: Option<i32>
The level of gzip encoding when sending logs (default 0
, no compression). Specifying both compression_codec
and gzip_level
in the same API request will result in an error.
compression_codec: Option<CompressionCodec>
The codec used for compressing your logs. Valid values are zstd
, snappy
, and gzip
. Specifying both compression_codec
and gzip_level
in the same API request will result in an error.
Implementations§
source§impl LoggingGenericCommon
impl LoggingGenericCommon
pub fn new() -> LoggingGenericCommon
Trait Implementations§
source§impl Clone for LoggingGenericCommon
impl Clone for LoggingGenericCommon
source§fn clone(&self) -> LoggingGenericCommon
fn clone(&self) -> LoggingGenericCommon
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LoggingGenericCommon
impl Debug for LoggingGenericCommon
source§impl Default for LoggingGenericCommon
impl Default for LoggingGenericCommon
source§fn default() -> LoggingGenericCommon
fn default() -> LoggingGenericCommon
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LoggingGenericCommon
impl<'de> Deserialize<'de> for LoggingGenericCommon
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>,
Deserialize this value from the given Serde deserializer. Read more