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

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

parents 6baf20af 6948daca
...@@ -44,6 +44,11 @@ ...@@ -44,6 +44,11 @@
"type": "string", "type": "string",
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "The number of entries actually deleted",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
"type": "integer", "type": "integer",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -48,6 +48,17 @@ ...@@ -48,6 +48,17 @@
"name": "consumer", "name": "consumer",
"type": "string" "type": "string"
} }
],
"reply_schema": {
"description": "The number of created consumers (0 or 1)",
"oneOf": [
{
"const": 1
},
{
"const": 0
}
] ]
} }
}
} }
...@@ -47,6 +47,11 @@ ...@@ -47,6 +47,11 @@
"name": "consumer", "name": "consumer",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"description": "The number of pending messages that were yet associated with such a consumer",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -43,6 +43,17 @@ ...@@ -43,6 +43,17 @@
"name": "group", "name": "group",
"type": "string" "type": "string"
} }
],
"reply_schema": {
"description": "The number of destroyed consumer groups (0 or 1)",
"oneOf": [
{
"const": 1
},
{
"const": 0
}
] ]
} }
}
} }
...@@ -13,6 +13,13 @@ ...@@ -13,6 +13,13 @@
], ],
"acl_categories": [ "acl_categories": [
"STREAM" "STREAM"
] ],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"items": {
"type": "string"
}
}
} }
} }
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
"type": "integer", "type": "integer",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -46,6 +46,29 @@ ...@@ -46,6 +46,29 @@
"name": "group", "name": "group",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"description": "Array list of consumers",
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"pending": {
"type": "integer"
},
"idle": {
"type": "integer"
},
"inactive": {
"type": "integer"
}
}
}
}
} }
} }
...@@ -39,6 +39,48 @@ ...@@ -39,6 +39,48 @@
} }
} }
], ],
"reply_schema": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"consumers": {
"type": "integer"
},
"pending": {
"type": "integer"
},
"last-delivered-id": {
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"entries-read": {
"oneOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
},
"lag": {
"oneOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
}
}
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -13,6 +13,13 @@ ...@@ -13,6 +13,13 @@
], ],
"acl_categories": [ "acl_categories": [
"STREAM" "STREAM"
] ],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"items": {
"type": "string"
}
}
} }
} }
...@@ -43,6 +43,291 @@ ...@@ -43,6 +43,291 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "Summary form, in case `FULL` was not given.",
"type": "object",
"additionalProperties": false,
"properties": {
"length": {
"description": "the number of entries in the stream (see `XLEN`)",
"type": "integer"
},
"radix-tree-keys": {
"description": "the number of keys in the underlying radix data structure",
"type": "integer"
},
"radix-tree-nodes": {
"description": "the number of nodes in the underlying radix data structure",
"type": "integer"
},
"last-generated-id": {
"description": "the ID of the least-recently entry that was added to the stream",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"max-deleted-entry-id": {
"description": "the maximal entry ID that was deleted from the stream",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"recorded-first-entry-id": {
"description": "cached copy of the first entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"entries-added": {
"description": "the count of all entries added to the stream during its lifetime",
"type": "integer"
},
"groups": {
"description": "the number of consumer groups defined for the stream",
"type": "integer"
},
"first-entry": {
"description": "the first entry of the stream",
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "data",
"type": "array",
"items": {
"type": "string"
}
}
]
}
]
},
"last-entry": {
"description": "the last entry of the stream",
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "data",
"type": "array",
"items": {
"type": "string"
}
}
]
}
]
}
}
},
{
"description": "Extended form, in case `FULL` was given.",
"type": "object",
"additionalProperties": false,
"properties": {
"length": {
"description": "the number of entries in the stream (see `XLEN`)",
"type": "integer"
},
"radix-tree-keys": {
"description": "the number of keys in the underlying radix data structure",
"type": "integer"
},
"radix-tree-nodes": {
"description": "the number of nodes in the underlying radix data structure",
"type": "integer"
},
"last-generated-id": {
"description": "the ID of the least-recently entry that was added to the stream",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"max-deleted-entry-id": {
"description": "the maximal entry ID that was deleted from the stream",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"recorded-first-entry-id": {
"description": "cached copy of the first entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"entries-added": {
"description": "the count of all entries added to the stream during its lifetime",
"type": "integer"
},
"entries": {
"description": "all the entries of the stream",
"type": "array",
"uniqueItems": true,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "data",
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"groups": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "group name",
"type": "string"
},
"last-delivered-id": {
"description": "last entry ID that was delivered to a consumer",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
"entries-read": {
"description": "total number of entries ever read by consumers in the group",
"oneOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
},
"lag": {
"description": "number of entries left to be consumed from the stream",
"oneOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
},
"pel-count": {
"description": "total number of unacknowledged entries",
"type": "integer"
},
"pending": {
"description": "data about all of the unacknowledged entries",
"type": "array",
"items": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": [
{
"description": "Entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Consumer name",
"type": "string"
},
{
"description": "Delivery timestamp",
"type": "integer"
},
{
"description": "Delivery count",
"type": "integer"
}
]
}
},
"consumers": {
"description": "data about all of the consumers of the group",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"active-time": {
"type": "integer",
"description": "Last time this consumer was active (successful reading/claiming).",
"minimum": 0
},
"name": {
"description": "consumer name",
"type": "string"
},
"seen-time": {
"description": "timestamp of the last interaction attempt of the consumer",
"type": "integer"
},
"pel-count": {
"description": "number of unacknowledged entries that belong to the consumer",
"type": "integer"
},
"pending": {
"description": "data about the unacknowledged entries",
"type": "array",
"items": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"description": "Entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Delivery timestamp",
"type": "integer"
},
{
"description": "Delivery count",
"type": "integer"
}
]
}
}
}
}
}
}
}
}
}
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
"type": "key", "type": "key",
"key_spec_index": 0 "key_spec_index": 0
} }
] ],
"reply_schema": {
"description": "The number of entries of the stream at key",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -41,6 +41,79 @@ ...@@ -41,6 +41,79 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "Extended form, in case `start` was given.",
"type": "array",
"items": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": [
{
"description": "Entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Consumer name",
"type": "string"
},
{
"description": "Idle time",
"type": "integer"
},
{
"description": "Delivery count",
"type": "integer"
}
]
}
},
{
"description": "Summary form, in case `start` was not given.",
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": [
{
"description": "Total number of pending messages",
"type": "integer"
},
{
"description": "Minimal pending entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Maximal pending entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Consumers with pending messages",
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Consumer name",
"type": "string"
},
{
"description": "Number of pending messages",
"type": "string"
}
]
}
}
]
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -38,6 +38,30 @@ ...@@ -38,6 +38,30 @@
} }
} }
], ],
"reply_schema": {
"description": "Stream entries with IDs matching the specified range.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Data",
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -67,6 +67,43 @@ ...@@ -67,6 +67,43 @@
} }
] ]
} }
],
"reply_schema": {
"oneOf": [
{
"description": "A map of key-value elements when each element composed of key name and the entries reported for that key",
"type": "object",
"patternProperties": {
"^.*$": {
"description": "The entries reported for that key",
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "entry id",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "array of field-value pairs",
"type": "array",
"items": {
"type": "string"
}
}
] ]
} }
}
}
},
{
"description": "If BLOCK option is given, and a timeout occurs, or there is no stream we can serve",
"type": "null"
}
]
}
}
} }
...@@ -87,6 +87,48 @@ ...@@ -87,6 +87,48 @@
} }
] ]
} }
],
"reply_schema": {
"oneOf": [
{
"description": "If BLOCK option is specified and the timeout expired",
"type": "null"
},
{
"description": "A map of key-value elements when each element composed of key name and the entries reported for that key",
"type": "object",
"additionalProperties": {
"description": "The entries reported for that key",
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Stream id",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"oneOf": [
{
"description": "Array of field-value pairs",
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
] ]
} }
}
}
]
}
}
} }
...@@ -58,6 +58,29 @@ ...@@ -58,6 +58,29 @@
"type": "integer", "type": "integer",
"optional": true "optional": true
} }
],
"reply_schema": {
"description": "An array of the entries with IDs matching the specified range",
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Stream id",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Array of field-value pairs",
"type": "array",
"items": {
"type": "string"
}
}
] ]
} }
}
}
} }
...@@ -64,6 +64,9 @@ ...@@ -64,6 +64,9 @@
"optional": true, "optional": true,
"since": "7.0.0" "since": "7.0.0"
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -98,6 +98,11 @@ ...@@ -98,6 +98,11 @@
} }
] ]
} }
] ],
"reply_schema": {
"description": "The number of entries deleted from the stream.",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -48,6 +48,26 @@ ...@@ -48,6 +48,26 @@
} }
} }
], ],
"reply_schema": {
"anyOf":[
{
"description": "Operation was aborted (conflict with one of the `XX`/`NX`/`LT`/`GT` options).",
"type": "null"
},
{
"description": "The number of new members (when the `CH` option is not used)",
"type": "integer"
},
{
"description": "The number of new or updated members (when the `CH` option is used)",
"type": "integer"
},
{
"description": "The updated score of the member (when the `INCR` option is used)",
"type": "number"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
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