#[non_exhaustive]pub struct HotkeysResponse {Show 16 fields
pub tracking_active: bool,
pub sample_ratio: u64,
pub selected_slots: Vec<SlotRange>,
pub all_commands_all_slots_us: u64,
pub net_bytes_all_commands_all_slots: u64,
pub collection_start_time_unix_ms: u64,
pub collection_duration_ms: u64,
pub total_cpu_time_user_ms: Option<u64>,
pub total_cpu_time_sys_ms: Option<u64>,
pub total_net_bytes: Option<u64>,
pub by_cpu_time_us: Option<Vec<HotKeyEntry>>,
pub by_net_bytes: Option<Vec<HotKeyEntry>>,
pub sampled_commands_selected_slots_us: Option<u64>,
pub all_commands_selected_slots_us: Option<u64>,
pub net_bytes_sampled_commands_selected_slots: Option<u64>,
pub net_bytes_all_commands_selected_slots: Option<u64>,
}Expand description
Response from the HOTKEYS GET command.
Contains information about the hotkeys tracking session, including tracking metadata, performance statistics, and lists of top K hot keys sorted by the metrics specified in HOTKEYS START.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tracking_active: boolWhether tracking is currently active (1) or stopped (0).
sample_ratio: u64The sampling ratio used during tracking.
selected_slots: Vec<SlotRange>Array of selected slot ranges.
all_commands_all_slots_us: u64CPU time in microseconds for all commands on all slots.
net_bytes_all_commands_all_slots: u64Network bytes for all commands on all slots.
collection_start_time_unix_ms: u64Unix timestamp in milliseconds when tracking started.
collection_duration_ms: u64Duration of tracking in milliseconds.
total_cpu_time_user_ms: Option<u64>User CPU time used in milliseconds (only when CPU metric was specified).
total_cpu_time_sys_ms: Option<u64>System CPU time used in milliseconds (only when CPU metric was specified).
total_net_bytes: Option<u64>Total network bytes processed (only when NET metric was specified).
by_cpu_time_us: Option<Vec<HotKeyEntry>>Array of hotkeys sorted by CPU time in microseconds (only when CPU metric was specified).
by_net_bytes: Option<Vec<HotKeyEntry>>Array of hotkeys sorted by network bytes (only when NET metric was specified).
sampled_commands_selected_slots_us: Option<u64>CPU time in microseconds for sampled commands in selected slots (cluster mode with SAMPLE).
all_commands_selected_slots_us: Option<u64>CPU time in microseconds for all commands in selected slots (cluster mode).
net_bytes_sampled_commands_selected_slots: Option<u64>Network bytes for sampled commands in selected slots (cluster mode with SAMPLE).
net_bytes_all_commands_selected_slots: Option<u64>Network bytes for all commands on selected slots (cluster mode).
Trait Implementations§
Source§impl Clone for HotkeysResponse
impl Clone for HotkeysResponse
Source§fn clone(&self) -> HotkeysResponse
fn clone(&self) -> HotkeysResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HotkeysResponse
impl Debug for HotkeysResponse
Source§impl Default for HotkeysResponse
impl Default for HotkeysResponse
Source§fn default() -> HotkeysResponse
fn default() -> HotkeysResponse
Source§impl FromRedisValue for HotkeysResponse
impl FromRedisValue for HotkeysResponse
Source§fn from_redis_value(v: Value) -> Result<Self, ParsingError>
fn from_redis_value(v: Value) -> Result<Self, ParsingError>
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_value_ref(v: &Value) -> Result<Self, ParsingError>
fn from_redis_value_ref(v: &Value) -> Result<Self, ParsingError>
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_value_refs(items: &[Value]) -> Result<Vec<Self>, ParsingError>
fn from_redis_value_refs(items: &[Value]) -> Result<Vec<Self>, ParsingError>
from_redis_value_ref but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.Source§fn from_redis_values(items: Vec<Value>) -> Result<Vec<Self>, ParsingError>
fn from_redis_values(items: Vec<Value>) -> Result<Vec<Self>, ParsingError>
from_redis_value_refs, but takes a Vec<Value> instead
of a &[Value].Source§fn from_each_redis_values(items: Vec<Value>) -> Vec<Result<Self, ParsingError>>
fn from_each_redis_values(items: Vec<Value>) -> Vec<Result<Self, ParsingError>>
from_redis_values, but returns a result for each
conversion to make handling them case-by-case possible.Source§fn from_byte_slice(_vec: &[u8]) -> Option<Vec<Self>>
fn from_byte_slice(_vec: &[u8]) -> Option<Vec<Self>>
Source§fn from_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, ParsingError>
fn from_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, ParsingError>
Source§impl PartialEq for HotkeysResponse
impl PartialEq for HotkeysResponse
Source§fn eq(&self, other: &HotkeysResponse) -> bool
fn eq(&self, other: &HotkeysResponse) -> bool
self and other values to be equal, and is used by ==.