Request Quota

class trustar.models.RequestQuota(guid, max_requests, used_requests, time_window, last_reset_time, next_reset_time)

Models a request quota.

Variables:
  • guid – The GUID of the counter.
  • max_requests – The maximum number of requests allowed during the time window.
  • used_requests – The number of requests the user has used during the time window.
  • time_window – The length of the time window in milliseconds.
  • last_reset_time – The time that the counter was last reset, in milliseconds since epoch.
  • next_reset_time – The time that the counter will next be reset, in milliseconds since epoch.