summaryrefslogtreecommitdiffstats
path: root/src/commands/cluster-links.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/cluster-links.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/cluster-links.json')
-rw-r--r--src/commands/cluster-links.json60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/commands/cluster-links.json b/src/commands/cluster-links.json
new file mode 100644
index 0000000..07b2e83
--- /dev/null
+++ b/src/commands/cluster-links.json
@@ -0,0 +1,60 @@
+{
+ "LINKS": {
+ "summary": "Returns a list of all TCP links to and from peer nodes.",
+ "complexity": "O(N) where N is the total number of Cluster nodes",
+ "group": "cluster",
+ "since": "7.0.0",
+ "arity": 2,
+ "container": "CLUSTER",
+ "function": "clusterCommand",
+ "command_flags": [
+ "STALE"
+ ],
+ "command_tips": [
+ "NONDETERMINISTIC_OUTPUT"
+ ],
+ "reply_schema": {
+ "description": "an array of cluster links and their attributes",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "direction": {
+ "description": "This link is established by the local node _to_ the peer, or accepted by the local node _from_ the peer.",
+ "oneOf": [
+ {
+ "description": "connection initiated from peer",
+ "const": "from"
+ },
+ {
+ "description": "connection initiated to peer",
+ "const": "to"
+ }
+ ]
+ },
+ "node": {
+ "description": "the node id of the peer",
+ "type": "string"
+ },
+ "create-time": {
+ "description": "unix time creation time of the link. (In the case of a _to_ link, this is the time when the TCP link is created by the local node, not the time when it is actually established.)",
+ "type": "integer"
+ },
+ "events": {
+ "description": "events currently registered for the link. r means readable event, w means writable event",
+ "type": "string"
+ },
+ "send-buffer-allocated": {
+ "description": "allocated size of the link's send buffer, which is used to buffer outgoing messages toward the peer",
+ "type": "integer"
+ },
+ "send-buffer-used": {
+ "description": "size of the portion of the link's send buffer that is currently holding data(messages)",
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false
+ }
+ }
+ }
+}