class ProductQuotas
Defined at line 30 of file ../../src/developer/forensics/crash_reports/product_quotas.h
Maintains optional daily quota information for various different Products. Quotas are enforced on
a per-version basis for each different product.
If the quota is null, then operations on this class have no effect and a Product always has quota
remaining.
Public Methods
void ProductQuotas (const ProductQuotas & )
Defined at line 34 of file ../../src/developer/forensics/crash_reports/product_quotas.h
void ProductQuotas (ProductQuotas && )
Defined at line 35 of file ../../src/developer/forensics/crash_reports/product_quotas.h
ProductQuotas & operator= (const ProductQuotas & )
Defined at line 36 of file ../../src/developer/forensics/crash_reports/product_quotas.h
ProductQuotas & operator= (ProductQuotas && )
Defined at line 37 of file ../../src/developer/forensics/crash_reports/product_quotas.h
void ProductQuotas (timekeeper::Clock * clock, std::optional<uint64_t> quota, std::string quota_filepath, UtcClockReadyWatcherBase * utc_clock_ready_watcher, zx::duration reset_time_offset)
Defined at line 52 of file ../../src/developer/forensics/crash_reports/product_quotas.cc
bool HasQuotaRemaining (const Product & product)
Defined at line 83 of file ../../src/developer/forensics/crash_reports/product_quotas.cc
void DecrementRemainingQuota (const Product & product)
Defined at line 102 of file ../../src/developer/forensics/crash_reports/product_quotas.cc
zx::duration RandomResetOffset ()
Generates a random offset to apply to product quota resets, bounded between -1 hour and 1 hour.
Defined at line 116 of file ../../src/developer/forensics/crash_reports/product_quotas.cc