Commit 72935b9d authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Merge branch 'unstable' into dict-split-by-slot

parents 6baf20af 6948daca
...@@ -33,6 +33,21 @@ ...@@ -33,6 +33,21 @@
} }
} }
], ],
"reply_schema": {
"description": "List of values associated with the given fields, in the same order as they are requested.",
"type": "array",
"minItems": 1,
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -39,6 +39,9 @@ ...@@ -39,6 +39,9 @@
} }
} }
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,44 @@ ...@@ -35,6 +35,44 @@
} }
} }
], ],
"reply_schema": {
"anyOf": [
{
"description": "Key doesn't exist",
"type": "null"
},
{
"description": "A single random field. Returned in case `COUNT` was not used.",
"type": "string"
},
{
"description": "A list of fields. Returned in case `COUNT` was used.",
"type": "array",
"items": {
"type": "string"
}
},
{
"description": "Fields and their values. Returned in case `COUNT` and `WITHVALUES` were used. In RESP2 this is returned as a flat array.",
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Field",
"type": "string"
},
{
"description": "Value",
"type": "string"
}
]
}
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -57,6 +57,25 @@ ...@@ -57,6 +57,25 @@
"type": "integer", "type": "integer",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "cursor and scan response in array form",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "cursor",
"type": "string"
},
{
"description": "list of key/value pairs from the hash where each even element is the key, and each odd element is the value",
"type": "array",
"items": {
"type": "string"
}
}
]
}
} }
} }
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
} }
} }
], ],
"reply_schema": {
"type": "integer"
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -34,6 +34,18 @@ ...@@ -34,6 +34,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The field is a new field in the hash and value was set.",
"const": 0
},
{
"description": "The field already exists in the hash and no operation was performed.",
"const": 1
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
} }
} }
], ],
"reply_schema": {
"type": "integer",
"description": "String length of the value associated with the field, or zero when the field is not present in the hash or key does not exist at all.",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,13 @@ ...@@ -35,6 +35,13 @@
} }
} }
], ],
"reply_schema": {
"type": "array",
"description": "List of values in the hash, or an empty list when the key does not exist.",
"items": {
"type": "string"
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
"type": "key", "type": "key",
"key_spec_index": 0 "key_spec_index": 0
} }
] ],
"reply_schema": {
"description": "The value of key after the increment",
"type": "integer"
}
} }
} }
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
} }
} }
], ],
"reply_schema": {
"type": "integer",
"description": "The value of the key after incrementing it."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
} }
} }
], ],
"reply_schema": {
"type": "string",
"description": "The value of the key after incrementing it."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:SPECIAL" "RESPONSE_POLICY:SPECIAL"
], ],
"reply_schema": {
"type": "string"
},
"arguments": [ "arguments": [
{ {
"name": "section", "name": "section",
......
...@@ -22,6 +22,13 @@ ...@@ -22,6 +22,13 @@
"name": "pattern", "name": "pattern",
"type": "pattern" "type": "pattern"
} }
] ],
"reply_schema": {
"description": "list of keys matching pattern",
"type": "array",
"items": {
"type": "string"
}
}
} }
} }
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
"acl_categories": [ "acl_categories": [
"ADMIN", "ADMIN",
"DANGEROUS" "DANGEROUS"
] ],
"reply_schema": {
"type": "integer",
"description": "UNIX TIME of the last DB save executed with success."
}
} }
} }
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
"NONDETERMINISTIC_OUTPUT", "NONDETERMINISTIC_OUTPUT",
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"RESPONSE_POLICY:SPECIAL" "RESPONSE_POLICY:SPECIAL"
] ],
"reply_schema": {
"type": "string",
"description": "A human readable latency analysis report."
}
} }
} }
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
"name": "event", "name": "event",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"type": "string",
"description": "Latency graph"
}
} }
} }
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
"command_flags": [ "command_flags": [
"LOADING", "LOADING",
"STALE" "STALE"
] ],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"items": {
"type": "string"
}
}
} }
} }
...@@ -18,6 +18,30 @@ ...@@ -18,6 +18,30 @@
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"RESPONSE_POLICY:SPECIAL" "RESPONSE_POLICY:SPECIAL"
], ],
"reply_schema": {
"type": "object",
"description": "A map where each key is a command name, and each value is a map with the total calls, and an inner map of the histogram time buckets.",
"patternProperties": {
"^.*$": {
"type": "object",
"additionalProperties": false,
"properties": {
"calls": {
"description": "The total calls for the command.",
"type": "integer",
"minimum": 0
},
"histogram_usec": {
"description": "Histogram map, bucket id to latency",
"type": "object",
"additionalProperties": {
"type": "integer"
}
}
}
}
}
},
"arguments": [ "arguments": [
{ {
"name": "COMMAND", "name": "COMMAND",
......
...@@ -18,6 +18,27 @@ ...@@ -18,6 +18,27 @@
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"RESPONSE_POLICY:SPECIAL" "RESPONSE_POLICY:SPECIAL"
], ],
"reply_schema": {
"type": "array",
"description": "An array where each element is a two elements array representing the timestamp and the latency of the event.",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "timestamp of the event",
"type": "integer",
"minimum": 0
},
{
"description": "latency of the event",
"type": "integer",
"minimum": 0
}
]
}
},
"arguments": [ "arguments": [
{ {
"name": "event", "name": "event",
......
...@@ -17,6 +17,33 @@ ...@@ -17,6 +17,33 @@
"NONDETERMINISTIC_OUTPUT", "NONDETERMINISTIC_OUTPUT",
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"RESPONSE_POLICY:SPECIAL" "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."
}
]
}
}
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment