pub struct WebhookConfig {
pub url: String,
pub format: WebhookFormat,
pub buffer_size: usize,
pub timeout: Duration,
pub max_retries: u32,
pub auth_header: Option<String>,
pub delivery_guarantee: DeliveryGuarantee,
pub overflow_dir: Option<PathBuf>,
}Expand description
Configuration for the webhook sink.
Fields§
§url: StringTarget URL for HTTP POST.
format: WebhookFormatOutput format.
buffer_size: usizeChannel buffer size (events). Default: 10,000.
timeout: DurationHTTP request timeout. Default: 5 seconds.
max_retries: u32Maximum retry attempts per event. Default: 3.
auth_header: Option<String>Optional authorization header value (e.g. “Bearer <token>”).
Supports environment variable expansion: values matching the
pattern ${VAR_NAME} are replaced with the contents of the
corresponding environment variable at sink creation time. This
avoids storing plaintext secrets in configuration files.
delivery_guarantee: DeliveryGuaranteeDelivery guarantee mode. Default: BestEffort.
overflow_dir: Option<PathBuf>Directory for the overflow journal (only used in AtLeastOnce mode).
If None, falls back to the system temp directory.
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§fn clone(&self) -> WebhookConfig
fn clone(&self) -> WebhookConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookConfig
impl Debug for WebhookConfig
Auto Trait Implementations§
impl Freeze for WebhookConfig
impl RefUnwindSafe for WebhookConfig
impl Send for WebhookConfig
impl Sync for WebhookConfig
impl Unpin for WebhookConfig
impl UnsafeUnpin for WebhookConfig
impl UnwindSafe for WebhookConfig
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§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> ⓘ
Converts
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> ⓘ
Converts
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