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: StringThe key name
labels: HashMap<String, String>Label-value pairs
- By default, an empty list is reported
- If
withlabelsis specified, all labels associated with this time series are reported - If
selected_labelsis 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