athena_rs 3.26.2

Hyper performant polyglot Database driver
Documentation
//! Client statistics expected logging-schema table contracts.
//!
//! This module owns expected contracts for aggregate client/table statistics
//! tables used by gateway telemetry and reporting flows.

use super::super::logging_expectation_contracts::ExpectedLoggingTable;

/// Expected per-client aggregate request/operation counters.
pub(in super::super) const EXPECTED_CLIENT_STATISTICS: ExpectedLoggingTable =
    ExpectedLoggingTable {
        table_schema: "public",
        table_name: "client_statistics",
        relation_type: "BASE TABLE",
        required: true,
        purpose: "Per-client aggregate request/operation counters",
        required_columns: &[
            "client_name",
            "total_requests",
            "successful_requests",
            "failed_requests",
            "total_operations",
        ],
    };

/// Expected per-table/per-operation aggregate counters.
pub(in super::super) const EXPECTED_CLIENT_TABLE_STATISTICS: ExpectedLoggingTable =
    ExpectedLoggingTable {
        table_schema: "public",
        table_name: "client_table_statistics",
        relation_type: "BASE TABLE",
        required: true,
        purpose: "Per-table/per-operation aggregate counters",
        required_columns: &[
            "client_name",
            "table_name",
            "operation",
            "total_operations",
            "error_operations",
        ],
    };