summaryrefslogtreecommitdiffstats
path: root/src/commands/latency-latest.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
commit317c0644ccf108aa23ef3fd8358bd66c2840bfc0 (patch)
treec417b3d25c86b775989cb5ac042f37611b626c8a /src/commands/latency-latest.json
parentInitial commit. (diff)
downloadredis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.tar.xz
redis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.zip
Adding upstream version 5:7.2.4.upstream/5%7.2.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/commands/latency-latest.json')
-rw-r--r--src/commands/latency-latest.json49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/commands/latency-latest.json b/src/commands/latency-latest.json
new file mode 100644
index 0000000..88c9e7a
--- /dev/null
+++ b/src/commands/latency-latest.json
@@ -0,0 +1,49 @@
+{
+ "LATEST": {
+ "summary": "Returns the latest latency samples for all events.",
+ "complexity": "O(1)",
+ "group": "server",
+ "since": "2.8.13",
+ "arity": 2,
+ "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 four elements array representing the event's name, timestamp, latest and all-time latency measurements.",
+ "items": {
+ "type": "array",
+ "minItems": 4,
+ "maxItems": 4,
+ "items": [
+ {
+ "type": "string",
+ "description": "Event name."
+ },
+ {
+ "type": "integer",
+ "description": "Timestamp."
+ },
+ {
+ "type": "integer",
+ "description": "Latest latency in milliseconds."
+ },
+ {
+ "type": "integer",
+ "description": "Max latency in milliseconds."
+ }
+ ]
+ }
+ }
+ }
+}