pub struct StatsSeries {
pub key: String,
pub label: String,
pub total: f64,
pub share: f64,
pub rate_per_s: f64,
pub peak: Option<StatsPeak>,
pub previous_total: Option<f64>,
pub change: Option<f64>,
pub points: Vec<(i64, f64)>,
}Expand description
One series of a StatsSeriesResult.
Fields§
§key: StringRaw key, e.g. rcode 0, a qtype, a client identity uuid; __other for the merged
rest, __nxdomain for NXDOMAIN in a zone’s qtype/geo/name grouping.
label: StringReadable name, e.g. NOERROR, AAAA, the client’s identify.
total: f64Sum over the range (a count, whatever the mode).
Part of the result’s total (0–1).
rate_per_s: f64total per second of the range.
peak: Option<StatsPeak>The busiest step; None without data.
previous_total: Option<f64>With compare, as on the result.
change: Option<f64>With compare, as on the result.
points: Vec<(i64, f64)>(t, value) per step: t the start of the step in ms, value per mode. A step
without data is 0 (with fill, the default) or absent.
Trait Implementations§
Source§impl Clone for StatsSeries
impl Clone for StatsSeries
Source§fn clone(&self) -> StatsSeries
fn clone(&self) -> StatsSeries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatsSeries
impl Debug for StatsSeries
Source§impl<'de> Deserialize<'de> for StatsSeries
impl<'de> Deserialize<'de> for StatsSeries
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
Source§impl PartialEq for StatsSeries
impl PartialEq for StatsSeries
Source§impl Serialize for StatsSeries
impl Serialize for StatsSeries
impl StructuralPartialEq for StatsSeries
Auto Trait Implementations§
impl Freeze for StatsSeries
impl RefUnwindSafe for StatsSeries
impl Send for StatsSeries
impl Sync for StatsSeries
impl Unpin for StatsSeries
impl UnsafeUnpin for StatsSeries
impl UnwindSafe for StatsSeries
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