summaryrefslogtreecommitdiff
path: root/src/commands/sentinel-replicas.json
blob: 09d88f2d0dd8665a1eb8bbd8f7a3893036b0ad51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
    "REPLICAS": {
        "summary": "Returns a list of the monitored Redis replicas.",
        "complexity": "O(N) where N is the number of replicas",
        "group": "sentinel",
        "since": "5.0.0",
        "arity": 3,
        "container": "SENTINEL",
        "function": "sentinelCommand",
        "command_flags": [
            "ADMIN",
            "SENTINEL",
            "ONLY_SENTINEL"
        ],
        "reply_schema": {
            "type": "array",
            "description": "List of replicas for this master, and their state.",
            "items": {
                "type": "object",
                "additionalProperties": {
                    "type": "string"
                }
            }
        },
        "arguments": [
            {
                "name": "master-name",
                "type": "string"
            }
        ]
    }
}