pub struct VectorSinkConfig {
pub name: String,
pub sink_type: String,
pub inputs: Vec<String>,
pub endpoint: Option<String>,
pub labels: HashMap<String, String>,
pub encoding: String,
pub compression: String,
pub batch: Option<VectorBatchConfig>,
pub request: Option<VectorRequestConfig>,
pub options: HashMap<String, String>,
}Expand description
Vector 输出目标配置
Fields§
§name: String输出目标名称(唯一标识)
sink_type: String输出类型(loki | elasticsearch | s3 | http | file | console 等)
inputs: Vec<String>输入源(来自哪个 transform)
endpoint: Option<String>端点 URL(根据 sink_type 不同而不同)
- loki: http://loki:3100
- elasticsearch: http://elasticsearch:9200
- s3: s3://bucket-name/path
- http: http://endpoint:port
labels: HashMap<String, String>标签配置(用于 Loki 等需要标签的目标)
encoding: String编码格式(json | text | native)
compression: String压缩方式(gzip | snappy | none)
batch: Option<VectorBatchConfig>批量配置
request: Option<VectorRequestConfig>请求重试配置
options: HashMap<String, String>其他配置项(键值对)
Trait Implementations§
Source§impl Clone for VectorSinkConfig
impl Clone for VectorSinkConfig
Source§fn clone(&self) -> VectorSinkConfig
fn clone(&self) -> VectorSinkConfig
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 VectorSinkConfig
impl Debug for VectorSinkConfig
Source§impl<'de> Deserialize<'de> for VectorSinkConfig
impl<'de> Deserialize<'de> for VectorSinkConfig
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 VectorSinkConfig
impl RefUnwindSafe for VectorSinkConfig
impl Send for VectorSinkConfig
impl Sync for VectorSinkConfig
impl Unpin for VectorSinkConfig
impl UnwindSafe for VectorSinkConfig
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