pub struct EventQuery {Show 23 fields
pub limit: Option<i32>,
pub cursor: Option<String>,
pub min_start_time: Option<i64>,
pub max_start_time: Option<i64>,
pub min_end_time: Option<i64>,
pub max_end_time: Option<i64>,
pub min_active_time: Option<i64>,
pub max_active_time: Option<i64>,
pub asset_ids: Option<Vec<i64>>,
pub asset_external_ids: Option<Vec<String>>,
pub asset_subtree_ids: Option<Vec<i64>>,
pub asset_subtree_external_ids: Option<Vec<String>>,
pub source: Option<String>,
pub type: Option<String>,
pub subtype: Option<String>,
pub min_created_time: Option<i64>,
pub max_created_time: Option<i64>,
pub min_last_updated_time: Option<i64>,
pub max_last_updated_time: Option<i64>,
pub external_id_prefix: Option<String>,
pub partition: Option<Partition>,
pub include_metadata: Option<bool>,
pub sort: Option<Vec<String>>,
}Expand description
Query for listing events.
Fields§
§limit: Option<i32>Maximum number of events to return. The default is 100, and the maximum is 1000.
cursor: Option<String>Optional cursor for pagination.
min_start_time: Option<i64>Minimum value of start_time in milliseconds since epoch.
max_start_time: Option<i64>Maximum value of start_time in milliseconds since epoch.
min_end_time: Option<i64>Minimum value of end_time in milliseconds since epoch.
max_end_time: Option<i64>Maximum value of end_time in milliseconds since epoch.
min_active_time: Option<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. In milliseconds since epoch.
max_active_time: Option<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. In milliseconds since epoch.
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<i64>>Include events that relate to assets in the subtree of one of these assets.
asset_subtree_external_ids: Option<Vec<String>>Include events that relate to assets in the subtree of one of these assets.
source: Option<String>Event source.
type: Option<String>Event type
subtype: Option<String>Event sub-type
min_created_time: Option<i64>Minimum value of created_time in milliseconds since epoch.
max_created_time: Option<i64>Maximum value of created_time in milliseconds since epoch.
min_last_updated_time: Option<i64>Minimum value of last_updated_time in milliseconds since epoch.
max_last_updated_time: Option<i64>Maximum value of last_updated_time in milliseconds since epoch.
external_id_prefix: Option<String>Filter by this (case-sensitive) prefix for the external ID.
partition: Option<Partition>Split the data set into partitions.
include_metadata: Option<bool>Whether metadata should be returned or not.
sort: Option<Vec<String>>Sort by an array of selected fields. Syntax is "<fieldname>:asc|desc".
Default sort order is asc, with short syntax "<fieldname>".
Partitions are done independently from sorting, there is no guarantee on sort order between elements from different partitions.
Trait Implementations§
Source§impl Clone for EventQuery
impl Clone for EventQuery
Source§fn clone(&self) -> EventQuery
fn clone(&self) -> EventQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more