Struct Atof Stream Sink Config
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct AtofStreamSinkConfig {
pub url: String,
pub transport: AtofEndpointTransport,
pub headers: HashMap<String, String>,
pub header_env: HashMap<String, String>,
pub timeout_millis: u64,
pub field_name_policy: AtofEndpointFieldNamePolicy,
}
Streaming sink for raw ATOF events.
Fields
url: String
Endpoint URL.
transport: AtofEndpointTransport
Endpoint transport.
headers: HashMap<String, String>
Headers applied to endpoint requests or handshakes.
header_env: HashMap<String, String>
Header names mapped to environment variables containing their values.
timeout_millis: u64
Per-endpoint timeout in milliseconds.
field_name_policy: AtofEndpointFieldNamePolicy
Field name transformation policy applied before sending events.
Implementations
impl AtofStreamSinkConfig
impl AtofStreamSinkConfig
new
pub fn new(url: impl Into<String>, transport: AtofEndpointTransport) -> Self
Create a streaming endpoint with defaults.
with_header
pub fn with_header(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
Add a header to this endpoint config.
with_header_env
pub fn with_header_env(
self,
key: impl Into<String>,
environment_variable: impl Into<String>,
) -> Self
Add a header whose value is resolved from an environment variable at activation.
with_timeout_millis
pub fn with_timeout_millis(self, timeout_millis: u64) -> Self
Override the endpoint timeout.
with_field_name_policy
pub fn with_field_name_policy(
self,
field_name_policy: AtofEndpointFieldNamePolicy,
) -> Self
Override the endpoint field name policy.
Trait Implementations
impl Clone for AtofStreamSinkConfig
impl Clone for AtofStreamSinkConfig
clone
fn clone(&self) -> AtofStreamSinkConfig
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for AtofStreamSinkConfig
impl Debug for AtofStreamSinkConfig
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for AtofStreamSinkConfig
impl<'de> Deserialize<'de> for AtofStreamSinkConfig
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for AtofStreamSinkConfig
impl PartialEq for AtofStreamSinkConfig
eq
fn eq(&self, other: &AtofStreamSinkConfig) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for AtofStreamSinkConfig
impl Serialize for AtofStreamSinkConfig
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl Eq for AtofStreamSinkConfig
impl Eq for AtofStreamSinkConfig
impl StructuralPartialEq for AtofStreamSinkConfig
impl StructuralPartialEq for AtofStreamSinkConfig