summaryrefslogtreecommitdiffstats
path: root/src/commands/sentinel-monitor.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/sentinel-monitor.json')
-rw-r--r--src/commands/sentinel-monitor.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/commands/sentinel-monitor.json b/src/commands/sentinel-monitor.json
new file mode 100644
index 0000000..cf6b4ee
--- /dev/null
+++ b/src/commands/sentinel-monitor.json
@@ -0,0 +1,37 @@
+{
+ "MONITOR": {
+ "summary": "Starts monitoring.",
+ "complexity": "O(1)",
+ "group": "sentinel",
+ "since": "2.8.4",
+ "arity": 6,
+ "container": "SENTINEL",
+ "function": "sentinelCommand",
+ "command_flags": [
+ "ADMIN",
+ "SENTINEL",
+ "ONLY_SENTINEL"
+ ],
+ "reply_schema": {
+ "const": "OK"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "ip",
+ "type": "string"
+ },
+ {
+ "name": "port",
+ "type": "integer"
+ },
+ {
+ "name": "quorum",
+ "type": "integer"
+ }
+ ]
+ }
+}