#[non_exhaustive]pub struct EventsTimeseriesQuery {
pub compute: EventsCompute,
pub data_source: EventsDataSource,
pub group_by: Option<Vec<EventsGroupBy>>,
pub indexes: Option<Vec<String>>,
pub name: Option<String>,
pub search: Option<EventsSearch>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
An individual timeseries events query.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.compute: EventsCompute
The instructions for what to compute for this query.
data_source: EventsDataSource
A data source that is powered by the Events Platform.
group_by: Option<Vec<EventsGroupBy>>
The list of facets on which to split results.
indexes: Option<Vec<String>>
The indexes in which to search.
name: Option<String>
The variable name for use in formulas.
search: Option<EventsSearch>
Configuration of the search/filter for an events query.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl EventsTimeseriesQuery
impl EventsTimeseriesQuery
pub fn new( compute: EventsCompute, data_source: EventsDataSource, ) -> EventsTimeseriesQuery
pub fn group_by(self, value: Vec<EventsGroupBy>) -> Self
pub fn indexes(self, value: Vec<String>) -> Self
pub fn name(self, value: String) -> Self
pub fn search(self, value: EventsSearch) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for EventsTimeseriesQuery
impl Clone for EventsTimeseriesQuery
Source§fn clone(&self) -> EventsTimeseriesQuery
fn clone(&self) -> EventsTimeseriesQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventsTimeseriesQuery
impl Debug for EventsTimeseriesQuery
Source§impl<'de> Deserialize<'de> for EventsTimeseriesQuery
impl<'de> Deserialize<'de> for EventsTimeseriesQuery
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 PartialEq for EventsTimeseriesQuery
impl PartialEq for EventsTimeseriesQuery
Source§impl Serialize for EventsTimeseriesQuery
impl Serialize for EventsTimeseriesQuery
impl StructuralPartialEq for EventsTimeseriesQuery
Auto Trait Implementations§
impl Freeze for EventsTimeseriesQuery
impl RefUnwindSafe for EventsTimeseriesQuery
impl Send for EventsTimeseriesQuery
impl Sync for EventsTimeseriesQuery
impl Unpin for EventsTimeseriesQuery
impl UnwindSafe for EventsTimeseriesQuery
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