pub struct EventFilter {Show 14 fields
pub start_time: Option<Range<i64>>,
pub end_time: Option<RangeOrIsNull>,
pub active_at_time: Option<Range<i64>>,
pub metadata: Option<HashMap<String, String>>,
pub asset_ids: Option<Vec<i64>>,
pub asset_external_ids: Option<Vec<String>>,
pub asset_subtree_ids: Option<Vec<Identity>>,
pub source: Option<String>,
pub created_time: Option<Range<i64>>,
pub last_updated_time: Option<Range<i64>>,
pub external_id_prefix: Option<String>,
pub type: Option<String>,
pub subtype: Option<String>,
pub data_set_ids: Option<Vec<Identity>>,
}Expand description
Simple filter on events.
Fields§
§start_time: Option<Range<i64>>Range of timestamps for start_time.
end_time: Option<RangeOrIsNull>Range of timestamp for end_time, or isNull filter condition.
active_at_time: Option<Range<i64>>Event is considered active from its startTime to endTime inclusive. If startTime is null, event is never active. If endTime is null, event is active from startTime onwards. activeAtTime filter will match all events that are active at some point from min to max, from min, or to max, depending on which of min and max parameters are specified.
metadata: Option<HashMap<String, String>>Filter on event metadata.
asset_ids: Option<Vec<i64>>Include events that relate to one of these assets.
asset_external_ids: Option<Vec<String>>Include events that relate to one of these assets.
asset_subtree_ids: Option<Vec<Identity>>Include events that relate to assets in the subtree of one of these assets.
source: Option<String>Event source.
created_time: Option<Range<i64>>Range of timestamps for created_time.
last_updated_time: Option<Range<i64>>Range of timestamps for last_updated_time.
external_id_prefix: Option<String>Filter by this (case-sensitive) prefix for the external ID.
type: Option<String>Event type
subtype: Option<String>Event sub-type
data_set_ids: Option<Vec<Identity>>Include events which are tied to one of these data sets.
Implementations§
Source§impl EventFilter
impl EventFilter
Sourcepub fn new() -> EventFilter
pub fn new() -> EventFilter
Create a new empty event filter.
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more