pub struct StatsSeriesResult {
pub from: i64,
pub to: i64,
pub step: u32,
pub mode: String,
pub total: f64,
pub rate_per_s: f64,
pub previous_total: Option<f64>,
pub change: Option<f64>,
pub series: Vec<StatsSeries>,
}Expand description
A chart-ready set of series over one time range (zone queries, client events and rcodes).
Fields§
§from: i64Start of the range, ms, aligned to 10 minutes.
to: i64End of the range, ms, exclusive.
step: u32Step length in seconds (600 = one Relay window).
mode: StringWhat point values are: count per step, rate per second, or share of all
series at that step (0–1).
total: f64Sum of every series over the range (a count, whatever the mode).
rate_per_s: f64total per second of the range.
previous_total: Option<f64>With compare: total of the preceding range of equal length.
change: Option<f64>With compare: (total - previous_total) / previous_total (0.25 = +25 %);
None also when previous_total is 0.
series: Vec<StatsSeries>Busiest first. Beyond limit the rest is merged into key __other.
Trait Implementations§
Source§impl Clone for StatsSeriesResult
impl Clone for StatsSeriesResult
Source§fn clone(&self) -> StatsSeriesResult
fn clone(&self) -> StatsSeriesResult
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 StatsSeriesResult
impl Debug for StatsSeriesResult
Source§impl<'de> Deserialize<'de> for StatsSeriesResult
impl<'de> Deserialize<'de> for StatsSeriesResult
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 StatsSeriesResult
impl PartialEq for StatsSeriesResult
Source§impl Serialize for StatsSeriesResult
impl Serialize for StatsSeriesResult
impl StructuralPartialEq for StatsSeriesResult
Auto Trait Implementations§
impl Freeze for StatsSeriesResult
impl RefUnwindSafe for StatsSeriesResult
impl Send for StatsSeriesResult
impl Sync for StatsSeriesResult
impl Unpin for StatsSeriesResult
impl UnsafeUnpin for StatsSeriesResult
impl UnwindSafe for StatsSeriesResult
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