pub struct PreprocessorConfig {
pub name: String,
pub message_oriented: bool,
pub config: Value,
pub max_allowed_call_duration: Option<Option<ConfigDuration>>,
}Expand description
Configuration for describing a preprocessor
Fields§
§name: StringName of the preprocessor. All preprocessors with the same name will perform the same task.
message_oriented: boolTrue if the preprocessor is message-oriented: true if each preprocessor output record corresponds to a whole number of of parser records.
config: ValueArbitrary additional configuration.
max_allowed_call_duration: Option<Option<ConfigDuration>>Maximum allowed duration of one call to the preprocessor, for example
10s. While a call runs longer, the connector is unhealthy and the
pipeline logs warnings.
When not set it defaults to 1s; null disables the check. Values
less than 1 second are raised to 1 second.
Implementations§
Source§impl PreprocessorConfig
impl PreprocessorConfig
Sourcepub fn max_allowed_call_duration(&self) -> Option<Duration>
pub fn max_allowed_call_duration(&self) -> Option<Duration>
The maximum allowed call duration in effect, or None if the check is
disabled.
Trait Implementations§
Source§impl Clone for PreprocessorConfig
impl Clone for PreprocessorConfig
Source§impl Debug for PreprocessorConfig
impl Debug for PreprocessorConfig
Source§impl<'de> Deserialize<'de> for PreprocessorConfig
impl<'de> Deserialize<'de> for PreprocessorConfig
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
impl Eq for PreprocessorConfig
Source§impl PartialEq for PreprocessorConfig
impl PartialEq for PreprocessorConfig
Source§impl Serialize for PreprocessorConfig
impl Serialize for PreprocessorConfig
impl StructuralPartialEq for PreprocessorConfig
Auto Trait Implementations§
impl Forget for PreprocessorConfig
impl Freeze for PreprocessorConfig
impl RefUnwindSafe for PreprocessorConfig
impl Send for PreprocessorConfig
impl Sync for PreprocessorConfig
impl Unpin for PreprocessorConfig
impl UnsafeUnpin for PreprocessorConfig
impl UnwindSafe for PreprocessorConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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