shrike 0.1.6

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ReportRefreshStatsInput {
    /// End date for recomputation, inclusive (YYYY-MM-DD).
    pub end_date: String,
    /// Optional list of queue IDs to recompute. Omit to recompute all groups.
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub queue_ids: Vec<i64>,
    /// Start date for recomputation, inclusive (YYYY-MM-DD).
    pub start_date: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ReportRefreshStatsOutput {
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ReportRefreshStats — Recompute report statistics for a date range. Useful for backfilling after failures or data corrections.
pub async fn report_refresh_stats(
    client: &crate::xrpc::Client,
    input: &ReportRefreshStatsInput,
) -> Result<ReportRefreshStatsOutput, crate::xrpc::Error> {
    client
        .procedure("tools.ozone.report.refreshStats", input)
        .await
}