Struct datadog_api_client::datadogV1::model::model_logs_message_remapper::LogsMessageRemapper
source · #[non_exhaustive]pub struct LogsMessageRemapper {
pub is_enabled: Option<bool>,
pub name: Option<String>,
pub sources: Vec<String>,
pub type_: LogsMessageRemapperType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}Expand description
The message is a key attribute in Datadog. It is displayed in the message column of the Log Explorer and you can do full string search on it. Use this Processor to define one or more attributes as the official log message.
Note: If multiple log message remapper processors can be applied to a given log, only the first one (according to the pipeline order) is taken into account.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_enabled: Option<bool>Whether or not the processor is enabled.
name: Option<String>Name of the processor.
sources: Vec<String>Array of source attributes.
type_: LogsMessageRemapperTypeType of logs message remapper.
additional_properties: BTreeMap<String, Value>Implementations§
source§impl LogsMessageRemapper
impl LogsMessageRemapper
pub fn new( sources: Vec<String>, type_: LogsMessageRemapperType, ) -> LogsMessageRemapper
pub fn is_enabled(self, value: bool) -> Self
pub fn name(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
source§impl Clone for LogsMessageRemapper
impl Clone for LogsMessageRemapper
source§fn clone(&self) -> LogsMessageRemapper
fn clone(&self) -> LogsMessageRemapper
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 LogsMessageRemapper
impl Debug for LogsMessageRemapper
source§impl<'de> Deserialize<'de> for LogsMessageRemapper
impl<'de> Deserialize<'de> for LogsMessageRemapper
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
source§impl PartialEq for LogsMessageRemapper
impl PartialEq for LogsMessageRemapper
source§impl Serialize for LogsMessageRemapper
impl Serialize for LogsMessageRemapper
impl StructuralPartialEq for LogsMessageRemapper
Auto Trait Implementations§
impl Freeze for LogsMessageRemapper
impl RefUnwindSafe for LogsMessageRemapper
impl Send for LogsMessageRemapper
impl Sync for LogsMessageRemapper
impl Unpin for LogsMessageRemapper
impl UnwindSafe for LogsMessageRemapper
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)