pub struct TrafficSummary {
pub observed_minutes: u32,
pub full: u32,
pub not_modified: u32,
pub failed: u32,
pub peak_requests_per_minute: u32,
pub rate_limit: Option<RateLimitSnapshot>,
}Expand description
One host’s measured traffic over (up to) the last hour.
Fields§
§observed_minutes: u32How many minutes the counts below cover: the time since the first response, capped at sixty. Under sixty, the counts are not yet an hourly rate.
full: u322xx responses: data, and charged against the primary limit.
not_modified: u32304 responses: free against the primary limit.
failed: u32Everything else. Charged, and not data.
peak_requests_per_minute: u32The most requests of any one minute, every class counted: the number
to hold against SECONDARY_POINTS_PER_MINUTE.
rate_limit: Option<RateLimitSnapshot>The newest reading of the account’s hourly quota.
Implementations§
Source§impl TrafficSummary
impl TrafficSummary
Sourcepub fn not_modified_percent(&self) -> Option<u32>
pub fn not_modified_percent(&self) -> Option<u32>
The share of responses that were 304, in whole percent, or None
before any response.
Trait Implementations§
Source§impl Clone for TrafficSummary
impl Clone for TrafficSummary
impl Copy for TrafficSummary
Source§impl Debug for TrafficSummary
impl Debug for TrafficSummary
Source§impl<'de> Deserialize<'de> for TrafficSummary
impl<'de> Deserialize<'de> for TrafficSummary
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
impl Eq for TrafficSummary
Source§impl PartialEq for TrafficSummary
impl PartialEq for TrafficSummary
Source§impl Serialize for TrafficSummary
impl Serialize for TrafficSummary
impl StructuralPartialEq for TrafficSummary
Auto Trait Implementations§
impl Forget for TrafficSummary
impl Freeze for TrafficSummary
impl RefUnwindSafe for TrafficSummary
impl Send for TrafficSummary
impl Sync for TrafficSummary
impl Unpin for TrafficSummary
impl UnsafeUnpin for TrafficSummary
impl UnwindSafe for TrafficSummary
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.