pub struct TsSample {
pub key: String,
pub labels: HashMap<String, String>,
pub timestamp_value: (u64, f64),
}
Available on crate feature
redis-time-series
only.Expand description
Result for the ts_mget
command.
Fields§
§key: String
The key name
labels: HashMap<String, String>
Label-value pairs
- By default, an empty list is reported
- If
withlabels
is specified, all labels associated with this time series are reported - If
selected_labels
is specified, the selected labels are reported
timestamp_value: (u64, f64)
Timestamp-value pairs for all samples/aggregations matching the range
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TsSample
impl<'de> Deserialize<'de> for TsSample
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
Auto Trait Implementations§
impl Freeze for TsSample
impl RefUnwindSafe for TsSample
impl Send for TsSample
impl Sync for TsSample
impl Unpin for TsSample
impl UnwindSafe for TsSample
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