summaryrefslogtreecommitdiffstats
path: root/src/commands/latency-history.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/latency-history.json')
-rw-r--r--src/commands/latency-history.json49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/commands/latency-history.json b/src/commands/latency-history.json
new file mode 100644
index 0000000..7c3591a
--- /dev/null
+++ b/src/commands/latency-history.json
@@ -0,0 +1,49 @@
+{
+ "HISTORY": {
+ "summary": "Returns timestamp-latency samples for an event.",
+ "complexity": "O(1)",
+ "group": "server",
+ "since": "2.8.13",
+ "arity": 3,
+ "container": "LATENCY",
+ "function": "latencyCommand",
+ "command_flags": [
+ "ADMIN",
+ "NOSCRIPT",
+ "LOADING",
+ "STALE"
+ ],
+ "command_tips": [
+ "NONDETERMINISTIC_OUTPUT",
+ "REQUEST_POLICY:ALL_NODES",
+ "RESPONSE_POLICY:SPECIAL"
+ ],
+ "reply_schema": {
+ "type": "array",
+ "description": "An array where each element is a two elements array representing the timestamp and the latency of the event.",
+ "items": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": [
+ {
+ "description": "timestamp of the event",
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "description": "latency of the event",
+ "type": "integer",
+ "minimum": 0
+ }
+ ]
+ }
+ },
+ "arguments": [
+ {
+ "name": "event",
+ "type": "string"
+ }
+ ]
+ }
+}