pub struct ReportingResource { /* private fields */ }Expand description
Call reporting — /api/v2/calls/reporting.
Implementations§
Source§impl ReportingResource
impl ReportingResource
Sourcepub async fn list_all(&self) -> Result<Vec<Call>, ManagerError>
pub async fn list_all(&self) -> Result<Vec<Call>, ManagerError>
The detailed call report, collecting every call across pages.
Sourcepub async fn list_page_raw(
&self,
page: i32,
per_page: Option<i32>,
filter: &CallReportFilter,
) -> Result<Page<Value>, ManagerError>
pub async fn list_page_raw( &self, page: i32, per_page: Option<i32>, filter: &CallReportFilter, ) -> Result<Page<Value>, ManagerError>
One page of the detailed call report as raw JSON rows (no typed decode), narrowed by
CallReportFilter (still validated: bad enum values are InvalidArgument before any
request). The generated Call model is stricter than the live API — e.g.
bridged.queueId/queueName are required in the model but null whenever a call bridged
to an agent rather than a queue — so the typed Self::list_page fails to decode
real production pages. Consumers that only re-serialize rows read raw and lose nothing.
Sourcepub async fn simple_page_raw(
&self,
page: i32,
per_page: Option<i32>,
) -> Result<Page<Value>, ManagerError>
pub async fn simple_page_raw( &self, page: i32, per_page: Option<i32>, ) -> Result<Page<Value>, ManagerError>
One page of the simple (timing-metrics) call report as raw JSON rows — same
stricter-than-reality rationale as Self::list_page_raw.
Sourcepub async fn list_page(
&self,
page: i32,
per_page: Option<i32>,
filter: &CallReportFilter,
) -> Result<Page<Call>, ManagerError>
pub async fn list_page( &self, page: i32, per_page: Option<i32>, filter: &CallReportFilter, ) -> Result<Page<Call>, ManagerError>
One page of the detailed call report, narrowed by CallReportFilter.
Sourcepub async fn simple_page(
&self,
page: i32,
per_page: Option<i32>,
) -> Result<Page<ReportingCall>, ManagerError>
pub async fn simple_page( &self, page: i32, per_page: Option<i32>, ) -> Result<Page<ReportingCall>, ManagerError>
One page of the simple (timing-metrics) call report.
Sourcepub async fn simple_all(&self) -> Result<Vec<ReportingCall>, ManagerError>
pub async fn simple_all(&self) -> Result<Vec<ReportingCall>, ManagerError>
The simple call report across all report types, collecting every call across pages.
Sourcepub async fn inbound_simple_all(
&self,
) -> Result<Vec<ReportingCall>, ManagerError>
pub async fn inbound_simple_all( &self, ) -> Result<Vec<ReportingCall>, ManagerError>
The simple inbound call report, collecting every call across pages.