[−][src]Struct libstorage::ir::TsPoint
An intermediate representation of time series data points
Fields
measurement: String
fields: HashMap<String, TsValue>
timestamp: Option<DateTime<Utc>>
This field is generally used for indexing
index_field: Option<String>
Optionally specify a field that should be used for indexing values. If not specified then the timestamp field will be used.
Methods
impl TsPoint
[src]
pub fn new(measurement: &str, is_time_series: bool) -> TsPoint
[src]
pub fn add_field<T: ToString>(&mut self, field: T, value: TsValue)
[src]
Add a field and its value
pub fn add_tag<T: ToString>(&mut self, tag: T, value: TsValue)
[src]
Add a tag and its value
pub fn set_index_field(&mut self, index_field: &str) -> MetricsResult<()>
[src]
Set the field to be used for indexing if supported
pub fn set_time(self, t: DateTime<Utc>) -> Self
[src]
Set the timestamp for this time point
Trait Implementations
impl Clone for TsPoint
[src]
fn clone(&self) -> TsPoint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TsPoint
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> Same<T> for T
type Output = T
Should always be Self