pub struct ReportData {
pub data_last_refreshed: Option<DateTime<Utc>>,
pub empty_reason: Option<String>,
pub is_data_golden: Option<bool>,
pub maximums: Option<Vec<DateRangeValues>>,
pub minimums: Option<Vec<DateRangeValues>>,
pub row_count: Option<i32>,
pub rows: Option<Vec<ReportRow>>,
pub samples_read_counts: Option<Vec<i64>>,
pub sampling_space_sizes: Option<Vec<i64>>,
pub totals: Option<Vec<DateRangeValues>>,
}
Expand description
The data part of the report.
This type is not used in any activity, and only used as part of another schema.
Fields§
§data_last_refreshed: Option<DateTime<Utc>>
The last time the data in the report was refreshed. All the hits received before this timestamp are included in the calculation of the report.
empty_reason: Option<String>
If empty reason is specified, the report is empty for this reason.
is_data_golden: Option<bool>
Indicates if response to this request is golden or not. Data is golden when the exact same request will not produce any new results if asked at a later point in time.
maximums: Option<Vec<DateRangeValues>>
Minimum and maximum values seen over all matching rows. These are both empty when hideValueRanges
in the request is false, or when rowCount is zero.
minimums: Option<Vec<DateRangeValues>>
Minimum and maximum values seen over all matching rows. These are both empty when hideValueRanges
in the request is false, or when rowCount is zero.
row_count: Option<i32>
Total number of matching rows for this query.
rows: Option<Vec<ReportRow>>
There’s one ReportRow for every unique combination of dimensions.
samples_read_counts: Option<Vec<i64>>
If the results are sampled, this returns the total number of samples read, one entry per date range. If the results are not sampled this field will not be defined. See developer guide for details.
sampling_space_sizes: Option<Vec<i64>>
If the results are sampled, this returns the total number of samples present, one entry per date range. If the results are not sampled this field will not be defined. See developer guide for details.
totals: Option<Vec<DateRangeValues>>
For each requested date range, for the set of all rows that match the query, every requested value format gets a total. The total for a value format is computed by first totaling the metrics mentioned in the value format and then evaluating the value format as a scalar expression. E.g., The “totals” for 3 / (ga:sessions + 2)
we compute 3 / ((sum of all relevant ga:sessions) + 2)
. Totals are computed before pagination.
Trait Implementations§
Source§impl Clone for ReportData
impl Clone for ReportData
Source§fn clone(&self) -> ReportData
fn clone(&self) -> ReportData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReportData
impl Debug for ReportData
Source§impl Default for ReportData
impl Default for ReportData
Source§fn default() -> ReportData
fn default() -> ReportData
Source§impl<'de> Deserialize<'de> for ReportData
impl<'de> Deserialize<'de> for ReportData
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>,
Source§impl Serialize for ReportData
impl Serialize for ReportData
impl Part for ReportData
Auto Trait Implementations§
impl Freeze for ReportData
impl RefUnwindSafe for ReportData
impl Send for ReportData
impl Sync for ReportData
impl Unpin for ReportData
impl UnwindSafe for ReportData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more