pub struct PreprocessorConfig {
pub config: Value,
pub max_allowed_call_duration: Option<String>,
pub message_oriented: bool,
pub name: String,
}Expand description
Configuration for describing a preprocessor
JSON schema
{
"description": "Configuration for describing a preprocessor",
"type": "object",
"required": [
"config",
"message_oriented",
"name"
],
"properties": {
"config": {
"description": "Arbitrary additional configuration."
},
"max_allowed_call_duration": {
"description": "Maximum allowed duration of one call to the preprocessor, for example\n`10s`. While a call runs longer, the connector is unhealthy and the\npipeline logs warnings.\n\nWhen not set it defaults to `1s`; `null` disables the check. Values\nless than 1 second are raised to 1 second.",
"default": "1s",
"type": [
"string",
"null"
]
},
"message_oriented": {
"description": "True if the preprocessor is message-oriented: true if each preprocessor\noutput record corresponds to a whole number of of parser records.",
"type": "boolean"
},
"name": {
"description": "Name of the preprocessor.\nAll preprocessors with the same name will perform the same task.",
"type": "string"
}
}
}Fields§
§config: ValueArbitrary additional configuration.
max_allowed_call_duration: Option<String>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.
message_oriented: boolTrue if the preprocessor is message-oriented: true if each preprocessor output record corresponds to a whole number of of parser records.
name: StringName of the preprocessor. All preprocessors with the same name will perform the same task.
Implementations§
Source§impl PreprocessorConfig
impl PreprocessorConfig
pub fn builder() -> PreprocessorConfig
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
Source§impl From<&PreprocessorConfig> for PreprocessorConfig
impl From<&PreprocessorConfig> for PreprocessorConfig
Source§fn from(value: &PreprocessorConfig) -> Self
fn from(value: &PreprocessorConfig) -> Self
Converts to this type from the input type.
Source§impl From<PreprocessorConfig> for PreprocessorConfig
impl From<PreprocessorConfig> for PreprocessorConfig
Source§fn from(value: PreprocessorConfig) -> Self
fn from(value: PreprocessorConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for PreprocessorConfig
impl Serialize for PreprocessorConfig
Source§impl TryFrom<PreprocessorConfig> for PreprocessorConfig
impl TryFrom<PreprocessorConfig> for PreprocessorConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PreprocessorConfig) -> Result<Self, ConversionError>
fn try_from(value: PreprocessorConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
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>,
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