pub struct AnalyticsReport {Show 14 fields
pub generated_at: DateTime<Utc>,
pub time_range_start: DateTime<Utc>,
pub time_range_end: DateTime<Utc>,
pub total_downloads: u64,
pub total_uploads: u64,
pub total_bandwidth_bytes: u64,
pub total_storage_bytes: u64,
pub total_errors: u64,
pub package_stats: Vec<PackageStats>,
pub user_stats: Vec<UserStats>,
pub region_stats: Vec<RegionStats>,
pub active_alerts: Vec<Alert>,
pub top_packages: Vec<(String, u64)>,
pub top_users: Vec<(String, u64)>,
}Expand description
Comprehensive analytics report
Fields§
§generated_at: DateTime<Utc>Report generation timestamp
time_range_start: DateTime<Utc>Report time range start
time_range_end: DateTime<Utc>Report time range end
total_downloads: u64Total downloads across all packages
total_uploads: u64Total uploads across all packages
total_bandwidth_bytes: u64Total bandwidth used (bytes)
total_storage_bytes: u64Total storage used (bytes)
total_errors: u64Total errors
package_stats: Vec<PackageStats>Per-package statistics
user_stats: Vec<UserStats>Per-user statistics
region_stats: Vec<RegionStats>Per-region statistics
active_alerts: Vec<Alert>Active alerts
top_packages: Vec<(String, u64)>Top packages by downloads
top_users: Vec<(String, u64)>Top users by activity
Trait Implementations§
Source§impl Clone for AnalyticsReport
impl Clone for AnalyticsReport
Source§fn clone(&self) -> AnalyticsReport
fn clone(&self) -> AnalyticsReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalyticsReport
impl Debug for AnalyticsReport
Source§impl<'de> Deserialize<'de> for AnalyticsReport
impl<'de> Deserialize<'de> for AnalyticsReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnalyticsReport
impl RefUnwindSafe for AnalyticsReport
impl Send for AnalyticsReport
impl Sync for AnalyticsReport
impl Unpin for AnalyticsReport
impl UnsafeUnpin for AnalyticsReport
impl UnwindSafe for AnalyticsReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more