mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-05 00:47:48 +08:00
feat(stats): 添加 Provider 性能统计分析
This commit is contained in:
@@ -168,6 +168,16 @@ impl<'a> AdminAppState<'a> {
|
||||
.await
|
||||
}
|
||||
|
||||
pub(crate) async fn summarize_usage_provider_performance(
|
||||
&self,
|
||||
query: &aether_data_contracts::repository::usage::UsageProviderPerformanceQuery,
|
||||
) -> Result<
|
||||
aether_data_contracts::repository::usage::StoredUsageProviderPerformance,
|
||||
GatewayError,
|
||||
> {
|
||||
self.app.summarize_usage_provider_performance(query).await
|
||||
}
|
||||
|
||||
pub(crate) async fn summarize_usage_cost_savings(
|
||||
&self,
|
||||
query: &aether_data_contracts::repository::usage::UsageCostSavingsSummaryQuery,
|
||||
|
||||
Reference in New Issue
Block a user