pub struct FilterConfig {Show 17 fields
pub negate: bool,
pub rules: Vec<FilterRuleConfig>,
pub proto: Vec<String>,
pub src_ip: Vec<String>,
pub dst_ip: Vec<String>,
pub ip: Vec<String>,
pub src_port: Vec<String>,
pub dst_port: Vec<String>,
pub port: Vec<String>,
pub flow_id: Vec<String>,
pub from: Option<String>,
pub to: Option<String>,
pub tcp_flags: Option<String>,
pub min_len: Option<u32>,
pub max_len: Option<u32>,
pub unidirectional: bool,
pub min_flow_packets: Option<u64>,
}Expand description
Filter configuration.
Fields§
§negate: boolWhen true, the entire filter result is inverted.
rules: Vec<FilterRuleConfig>Additional filter rules chained after the base body.
proto: Vec<String>IP protocols to keep (e.g. ["tcp", "udp"]).
src_ip: Vec<String>Source IP addresses / CIDRs to keep (OR-ed).
dst_ip: Vec<String>Destination IP addresses / CIDRs to keep (OR-ed).
ip: Vec<String>Either-endpoint IP addresses / CIDRs (OR-ed).
src_port: Vec<String>Source port or range strings to keep (OR-ed).
dst_port: Vec<String>Destination port or range strings to keep (OR-ed).
port: Vec<String>Either-endpoint port or range strings (OR-ed).
flow_id: Vec<String>Hex flow IDs to retain (comma-separated or multiple entries).
from: Option<String>Retain only packets at or after this datetime (RFC 3339 or Unix epoch seconds).
to: Option<String>Retain only packets at or before this datetime (RFC 3339 or Unix epoch seconds).
tcp_flags: Option<String>TCP flags filter string (e.g. "SYN+ACK", "RST:exact").
min_len: Option<u32>Minimum captured packet length in bytes.
max_len: Option<u32>Maximum captured packet length in bytes.
unidirectional: boolUse unidirectional flow IDs (default: bidirectional).
min_flow_packets: Option<u64>Only include flows with at least this many packets. Non-IP packets are excluded when this filter is active.
Trait Implementations§
Source§impl Debug for FilterConfig
impl Debug for FilterConfig
Source§impl Default for FilterConfig
impl Default for FilterConfig
Source§fn default() -> FilterConfig
fn default() -> FilterConfig
Source§impl<'de> Deserialize<'de> for FilterConfig
impl<'de> Deserialize<'de> for FilterConfig
Source§fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
Value, allows you to deserialize the type from it,
or accumulate 1 or more errorsAuto Trait Implementations§
impl Freeze for FilterConfig
impl RefUnwindSafe for FilterConfig
impl Send for FilterConfig
impl Sync for FilterConfig
impl Unpin for FilterConfig
impl UnsafeUnpin for FilterConfig
impl UnwindSafe for FilterConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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