Struct tusk_data::metrics::TimeSeries[][src]

pub struct TimeSeries {
    pub data: BTreeMap<DateTime<Utc>, MetricTypes>,
    pub meta_data: MetaData,
}

A TimeSeries corresponds to a group of metrics that share common MetaData.

Fields

Methods

impl TimeSeries
[src]

Given two time series, some common keys and an vector operator we can use this to join two time series together. To do this we find all the common keys and then apply the vector operator to the metrics.

Shifts a TimeSeries backwards by an offset of time

Merges two TimeSeries into a single TimeSeries. If a common key exists then the value of the RHS is dropped. If one of the LHS or RHS contains a superset of MetaData of the other then those specific fields are dropped to create a single TimeSeries

Trait Implementations

impl Clone for TimeSeries
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TimeSeries
[src]

Formats the value using the given formatter. Read more

impl Default for TimeSeries
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for TimeSeries

impl Sync for TimeSeries