diff options
Diffstat (limited to 'plugins/plugin_measurement_filter/src/config.rs')
-rw-r--r-- | plugins/plugin_measurement_filter/src/config.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/plugin_measurement_filter/src/config.rs b/plugins/plugin_measurement_filter/src/config.rs index 46536bd3..f6e973de 100644 --- a/plugins/plugin_measurement_filter/src/config.rs +++ b/plugins/plugin_measurement_filter/src/config.rs @@ -1,12 +1,17 @@ -#[derive(Debug, serde::Deserialize)] +#[derive(Debug, serde::Deserialize, tedge_api::Config)] #[serde_with::serde_as] pub struct MeasurementFilterConfig { + /// The name of the plugin to send the measurements to if the filter did not match its value pub(crate) target: String, + + /// The name of the plugin to send measurements to if the filter matched its value pub(crate) filtered_target: Option<String>, + /// A path to find the value inside a measurement #[serde_as(as = "TryFromInto<String>")] pub(crate) extractor: crate::extractor::Extractor, + /// The filter to filter the measurements with #[serde(flatten)] pub(crate) filter: crate::filter::Filter, } |