summaryrefslogtreecommitdiff
path: root/src/commands/slowlog-get.json
blob: ffc54b545487d060c1fa0daf5bc3cbb0364c3419 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
    "GET": {
        "summary": "Returns the slow log's entries.",
        "complexity": "O(N) where N is the number of entries returned",
        "group": "server",
        "since": "2.2.12",
        "arity": -2,
        "container": "SLOWLOG",
        "function": "slowlogCommand",
        "history": [
            [
                "4.0.0",
                "Added client IP address, port and name to the reply."
            ]
        ],
        "command_flags": [
            "ADMIN",
            "LOADING",
            "STALE"
        ],
        "command_tips": [
            "REQUEST_POLICY:ALL_NODES",
            "NONDETERMINISTIC_OUTPUT"
        ],
        "reply_schema": {
            "type": "array",
            "description": "Entries from the slow log in chronological order.",
            "uniqueItems": true,
            "items": {
                "type": "array",
                "minItems": 6,
                "maxItems": 6,
                "items": [
                    {
                        "type": "integer",
                        "description": "Slow log entry ID."
                    },
                    {
                        "type": "integer",
                        "description": "The unix timestamp at which the logged command was processed.",
                        "minimum": 0
                    },
                    {
                        "type": "integer",
                        "description": "The amount of time needed for its execution, in microseconds.",
                        "minimum": 0
                    },
                    {
                        "type": "array",
                        "description": "The arguments of the command.",
                        "items": {
                            "type": "string"
                        }
                    },
                    {
                        "type": "string",
                        "description": "Client IP address and port."
                    },
                    {
                        "type": "string",
                        "description": "Client name if set via the CLIENT SETNAME command."
                    }
                ]
            }
        },
        "arguments": [
            {
                "name": "count",
                "type": "integer",
                "optional": true
            }
        ]
    }
}