Skip to main content

usage_breakdown

Function usage_breakdown 

Source
pub async fn usage_breakdown(
    pool: &Pool,
    from: DateTime<Utc>,
    to: DateTime<Utc>,
    seats: Option<u32>,
) -> Result<UsageBreakdownResponse>
Expand description

Runs the cross-join + totals queries and assembles the response.

ยงErrors

Propagates pool/query errors (the handler maps them to 503).