pub struct VectorTransformConfig {
pub name: String,
pub transform_type: String,
pub inputs: Vec<String>,
pub source: Option<String>,
pub options: HashMap<String, String>,
}Expand description
Vector 转换配置
Fields§
§name: String转换器名称(唯一标识)
transform_type: String转换器类型(remap | filter | reduce | sample 等)
inputs: Vec<String>输入源(来自哪个 source 或 transform)
source: Option<String>转换脚本或配置(根据 transform_type 不同而不同) 对于 remap 类型,这里是 VRL (Vector Remap Language) 脚本
options: HashMap<String, String>其他配置项(键值对)
Trait Implementations§
Source§impl Clone for VectorTransformConfig
impl Clone for VectorTransformConfig
Source§fn clone(&self) -> VectorTransformConfig
fn clone(&self) -> VectorTransformConfig
Returns a duplicate 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 VectorTransformConfig
impl Debug for VectorTransformConfig
Source§impl<'de> Deserialize<'de> for VectorTransformConfig
impl<'de> Deserialize<'de> for VectorTransformConfig
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
Auto Trait Implementations§
impl Freeze for VectorTransformConfig
impl RefUnwindSafe for VectorTransformConfig
impl Send for VectorTransformConfig
impl Sync for VectorTransformConfig
impl Unpin for VectorTransformConfig
impl UnwindSafe for VectorTransformConfig
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