pub struct ReportQuery {
pub dataset: String,
pub time_range: ReportTimeRange,
pub dimensions: Vec<String>,
pub measures: Vec<String>,
pub filters: Vec<ReportFilter>,
pub order_by: Vec<ReportOrderBy>,
pub limit: u32,
}Expand description
Semantic query a caller submits to the reporting layer. The backend
compiles this to its native query language, scopes it to the calling
org, and returns a ReportResult.
Fields§
§dataset: StringDataset name to query (see GET /v1/reports/catalog for the list of available datasets).
time_range: ReportTimeRangeTime window for the query. The dataset selects which timestamp column the range applies to.
dimensions: Vec<String>Columns to group by. Empty list returns one aggregate row.
measures: Vec<String>Aggregations to compute (count, sum, avg, etc.). Empty list returns row counts only.
filters: Vec<ReportFilter>Predicate filters applied before aggregation.
order_by: Vec<ReportOrderBy>Sort spec applied after aggregation. Empty list yields unspecified order.
limit: u32Maximum number of rows to return (defaults to 100).
Trait Implementations§
Source§impl Clone for ReportQuery
impl Clone for ReportQuery
Source§fn clone(&self) -> ReportQuery
fn clone(&self) -> ReportQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReportQuery
impl Debug for ReportQuery
Source§impl<'de> Deserialize<'de> for ReportQuery
impl<'de> Deserialize<'de> for ReportQuery
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
Auto Trait Implementations§
impl Freeze for ReportQuery
impl RefUnwindSafe for ReportQuery
impl Send for ReportQuery
impl Sync for ReportQuery
impl Unpin for ReportQuery
impl UnsafeUnpin for ReportQuery
impl UnwindSafe for ReportQuery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request