mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 18:07:47 +08:00
feat(stats): add user group usage views
This commit is contained in:
@@ -1063,6 +1063,9 @@ pub struct UsageAuditSummaryQuery {
|
||||
pub created_from_unix_secs: u64,
|
||||
pub created_until_unix_secs: u64,
|
||||
pub user_id: Option<String>,
|
||||
/// Optional bulk user scope used by current user-group reporting.
|
||||
/// An empty list intentionally matches no usage rows.
|
||||
pub user_ids: Option<Vec<String>>,
|
||||
pub provider_name: Option<String>,
|
||||
pub model: Option<String>,
|
||||
}
|
||||
@@ -1455,6 +1458,9 @@ pub struct UsageTimeSeriesQuery {
|
||||
pub granularity: UsageTimeSeriesGranularity,
|
||||
pub tz_offset_minutes: i32,
|
||||
pub user_id: Option<String>,
|
||||
/// Optional bulk user scope used by current user-group reporting.
|
||||
/// An empty list intentionally matches no usage rows.
|
||||
pub user_ids: Option<Vec<String>>,
|
||||
pub provider_name: Option<String>,
|
||||
pub model: Option<String>,
|
||||
}
|
||||
@@ -1485,6 +1491,9 @@ pub struct UsageLeaderboardQuery {
|
||||
pub created_until_unix_secs: u64,
|
||||
pub group_by: UsageLeaderboardGroupBy,
|
||||
pub user_id: Option<String>,
|
||||
/// Optional bulk user scope used by current user-group reporting.
|
||||
/// An empty list intentionally matches no usage rows.
|
||||
pub user_ids: Option<Vec<String>>,
|
||||
pub provider_name: Option<String>,
|
||||
pub model: Option<String>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user