fix monitoring error totals and counter health

This commit is contained in:
elky
2026-06-26 10:48:45 +08:00
parent 063834e95b
commit 6c5e70ccb1
4 changed files with 92 additions and 12 deletions
@@ -70,6 +70,13 @@ impl<'a> AdminAppState<'a> {
self.app.list_monitoring_usage_errors(query).await
}
pub(crate) async fn count_monitoring_usage_errors(
&self,
query: &aether_data_contracts::repository::usage::UsageMonitoringErrorCountQuery,
) -> Result<u64, GatewayError> {
self.app.count_monitoring_usage_errors(query).await
}
pub(crate) async fn aggregate_usage_audits(
&self,
query: &aether_data_contracts::repository::usage::UsageAuditAggregationQuery,