glide_shared.commands.latency
Response models and parsing helpers for LATENCY commands.
LatencyEntry
dataclass
Represents the time and latency for a latency spike.
Attributes:
| Name | Type | Description |
|---|---|---|
time |
int
|
The time of the latency spike, as a Unix timestamp in seconds. |
latency |
int
|
The duration of the latency spike, in milliseconds. |
Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/commands/latency.py
13 14 15 16 17 18 19 20 21 22 23 | |
LatencyEventInfo
dataclass
Represents information about an event's latency spike time series.
Attributes:
| Name | Type | Description |
|---|---|---|
event_name |
str
|
The name of the event. |
latest_time |
int
|
The time of the latest latency spike, as a Unix timestamp in seconds. |
latest_duration |
int
|
The duration of the latest latency spike, in milliseconds. |
max_duration |
int
|
The all-time maximum duration of a latency spike, in milliseconds. |
sum |
Optional[int]
|
The sum of all latency spike durations in the event's time series, in milliseconds. Only populated for Valkey 8.1+. |
count |
Optional[int]
|
The number of latency spikes recorded in the event's time series. Only populated for Valkey 8.1+. |
Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/commands/latency.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |