Skip to content

Commit

Permalink
reply_schema for acl.tcl, but c code generator needs work (redis#34)
Browse files Browse the repository at this point in the history
Co-authored-by: Hanna Fadida <hanna.fadida@redislabs.com>
  • Loading branch information
sjpotter and fadidahanna committed Feb 23, 2023
1 parent ef68867 commit 273d41b
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/commands/memory-doctor.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"NONDETERMINISTIC_OUTPUT",
"REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:SPECIAL"
]
],
"reply_schema": {
"description": "memory problems report",
"type": "string"
}
}
}
106 changes: 105 additions & 1 deletion src/commands/memory-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,110 @@
"NONDETERMINISTIC_OUTPUT",
"REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:SPECIAL"
]
],
"reply_schema": {
"description": "memory usage details",
"type": "object",
"properties": {
"peak.allocated": {
"type": "integer"
},
"total.allocated": {
"type": "integer"
},
"startup.allocated": {
"type": "integer"
},
"replication.backlog": {
"type": "integer"
},
"clients.slaves": {
"type": "integer"
},
"clients.normal": {
"type": "integer"
},
"cluster.links": {
"type": "integer"
},
"aof.buffer": {
"type": "integer"
},
"lua.caches": {
"type": "integer"
},
"functions.caches": {
"type": "integer"
},
"overhead.total": {
"type": "integer"
},
"keys.count": {
"type": "integer"
},
"keys.bytes-per-key": {
"type": "integer"
},
"dataset.bytes": {
"type": "integer"
},
"dataset.percentage": {
"type": "number"
},
"peak.percentage": {
"type": "number"
},
"allocator.allocated": {
"type": "integer"
},
"allocator.active": {
"type": "integer"
},
"allocator.resident": {
"type": "integer"
},
"allocator-fragmentation.ratio": {
"type": "number"
},
"allocator-fragmentation.bytes": {
"type": "integer"
},
"allocator-rss.ratio": {
"type": "number"
},
"allocator-rss.bytes": {
"type": "integer"
},
"rss-overhead.ratio": {
"type": "number"
},
"rss-overhead.bytes": {
"type": "integer"
},
"fragmentation": {
"type": "number"
},
"fragmentation.bytes": {
"type": "integer"
}
},
"patternProperties": {
"^db.": {
"type": "object",
"properties": {
"overhead.hashtable.main": {
"type": "integer"
},
"overhead.hashtable.expires": {
"type": "integer"
},
"overhead.hashtable.slot-to-keys": {
"type": "integer"
}
},
"additionalProperties": false
}
}
}
}
}
7 changes: 6 additions & 1 deletion src/commands/publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"name": "message",
"type": "string"
}
]
],
"reply_schema": {
"description": "the number of clients that received the message. Note that in a Redis Cluster, only clients that are connected to the same node as the publishing client are included in the count",
"type": "integer",
"minimum": 0
}
}
}
7 changes: 6 additions & 1 deletion src/commands/spublish.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
}
}
}
]
],
"reply_schema": {
"description": "the number of clients that received the message. Note that in a Redis Cluster, only clients that are connected to the same node as the publishing client are included in the count",
"type": "integer",
"minimum": 0
}
}
}

0 comments on commit 273d41b

Please sign in to comment.