*Redis latency-history 命令
*语法
LATENCY HISTORY event
LATENCY HISTORY 命令返回 event 的延迟峰值时间序列的原始数据。
这对于想要获取原始数据以进行监控、显示图表等的应用程序很有用。
该命令将为 event 返回最多 160 个时间戳-延迟对。
event 的有效值为:
* active-defrag-cycle
* aof-fsync-always
* aof-stat
* aof-rewrite-diff-write
* aof-rename
* aof-write
* aof-write-active-child
* aof-write-alone
* aof-write-pending-fsync
* command
* expire-cycle
* eviction-cycle
* eviction-del
* fast-command
* fork
* rdb-unlink-temp-file
*示例
127.0.0.1:6379> latency history command
1) 1) (integer) 1405067822
2) (integer) 251
2) 1) (integer) 1405067941
2) (integer) 1001
有关更多信息,请参阅 延迟监控框架页面。
*返回信息
数组回复: 一个数组,其中每个元素是一个包含两个元素的数组,表示事件的时间戳和延迟。