pub struct TsInfo {
pub total_samples: u64,
pub memory_usage: u64,
pub first_timestamp: u64,
pub last_timestamp: u64,
pub retention_time: u64,
pub chunk_count: u64,
pub max_samples_per_chunk: u16,
pub chunk_size: u64,
pub duplicate_policy: Option<TsDuplicatePolicy>,
pub labels: Vec<(String, String)>,
pub source_key: Option<String>,
pub rules: Vec<(String, u64, String)>,
}Expand description
Provides information about a redis time series key.
Fields§
§total_samples: u64§memory_usage: u64§first_timestamp: u64§last_timestamp: u64§retention_time: u64§chunk_count: u64§max_samples_per_chunk: u16§chunk_size: u64§duplicate_policy: Option<TsDuplicatePolicy>§labels: Vec<(String, String)>§source_key: Option<String>§rules: Vec<(String, u64, String)>Trait Implementations§
source§impl FromRedisValue for TsInfo
impl FromRedisValue for TsInfo
source§fn from_redis_value(v: &Value) -> RedisResult<Self>
fn from_redis_value(v: &Value) -> RedisResult<Self>
Given a redis
Value this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.source§fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
Similar to
from_redis_value but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.Auto Trait Implementations§
impl RefUnwindSafe for TsInfo
impl Send for TsInfo
impl Sync for TsInfo
impl Unpin for TsInfo
impl UnwindSafe for TsInfo
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