pub struct Query {Show 13 fields
pub start_time: Option<DateTime<Utc>>,
pub end_time: Option<DateTime<Utc>>,
pub resolution: String,
pub aggregations: Vec<Aggregation>,
pub filter: Option<Filter>,
pub group_by: Vec<String>,
pub order: Vec<Order>,
pub limit: u32,
pub virtual_fields: Vec<VirtualField>,
pub projections: Vec<Projection>,
pub cursor: String,
pub include_cursor: bool,
pub continuation_token: String,
}
Expand description
A query that gets executed on a dataset.
If you’re looking for the APL query, check out AplQuery
.
Fields
start_time: Option<DateTime<Utc>>
Start time of the query.
end_time: Option<DateTime<Utc>>
End time of the query.
resolution: String
Resolution of the queries graph. Valid values are the queries time range / 100 at maximum and / 1000 at minimum. Use zero value for serve-side auto-detection.
aggregations: Vec<Aggregation>
Aggregations performed as part of the query.
filter: Option<Filter>
Filter applied on the queried results.
group_by: Vec<String>
Field names to group the query results by.
order: Vec<Order>
Order rules that specify the order of the query result.
limit: u32
Number of results returned from the query.
virtual_fields: Vec<VirtualField>
Virtual fields that can be referenced by aggregations, filters and orders.
projections: Vec<Projection>
cursor: String
The query cursor. Should be set to the cursor returned with a previous query result, if it was parital.
include_cursor: bool
Return the Cursor as part of the query result.
continuation_token: String
Used to get more results of a previous query. It is not valid for starred queries or otherwise stored queries.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
sourcefn 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
impl Eq for Query
impl StructuralEq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more