- 用法
-
LATENCY HISTORY event
- 复杂度
- O(1)
- 起始版本
- 2.8.13
- ACL 类别
- @admin, @dangerous, @slow
active-defrag-cycleaof-fsync-alwaysaof-stataof-rewrite-diff-writeaof-renameaof-writeaof-write-active-childaof-write-aloneaof-write-pending-fsynccommandexpire-cycleeviction-cycleeviction-delfast-commandforkrdb-unlink-temp-file
LATENCY HISTORY 命令返回 event 事件的延迟峰值时间序列的原始数据。
这对于希望获取原始数据以进行监控、显示图表等的应用程序非常有用。
该命令将为 event 事件返回最多 160 个时间戳-延迟对。
event 的有效值有
示例
127.0.0.1:6379> latency history command
1) 1) (integer) 1405067822
2) (integer) 251
2) 1) (integer) 1405067941
2) (integer) 1001
有关更多信息,请参阅延迟监控框架页面。
RESP2/RESP3 回复
数组回复:一个数组,其中每个元素都是一个包含两个元素的数组,分别表示事件的时间戳和延迟。