content/commands/latency-latest.md
The LATENCY LATEST command reports the latest latency events logged.
Each reported event has the following fields:
"All-time" means the maximum latency since the Redis instance was
started, or the time that events were reset [LATENCY RESET]({{< relref "/commands/latency-reset" >}}).
127.0.0.1:6379> debug sleep 1
OK
(1.00s)
127.0.0.1:6379> debug sleep .25
OK
127.0.0.1:6379> latency latest
1) 1) "command"
2) (integer) 1405067976
3) (integer) 251
4) (integer) 1001
For more information refer to the Latency Monitoring Framework page.
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | |
{{< multitabs id="latency-latest-return-info" tab1="RESP2" tab2="RESP3" >}}
Array reply: an array where each element is a four elements array representing the event's name, timestamp, latest and all-time latency measurements.
-tab-sep-
Array reply: an array where each element is a four elements array representing the event's name, timestamp, latest and all-time latency measurements.
{{< /multitabs >}}