Mercurial > prosody-modules
diff mod_rest/res/schema-xmpp.json @ 4519:ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 22 Mar 2021 00:21:27 +0100 |
parents | 073f5397c1d2 |
children | bd320ec2c2fc |
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json Sun Mar 21 23:54:06 2021 +0100 +++ b/mod_rest/res/schema-xmpp.json Mon Mar 22 00:21:27 2021 +0100 @@ -75,6 +75,42 @@ "x_name_is_value" : true } }, + "stats" : { + "description" : "Simple statistics gathering, array of (name, unit, value) tuples.", + "items" : { + "properties" : { + "name" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "unit" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "value" : { + "type" : "number", + "xml" : { + "attribute" : true + } + } + }, + "type" : "object", + "xml" : { + "name" : "stat" + } + }, + "title" : "XEP-0039: Statistics Gathering", + "type" : "array", + "xml" : { + "name" : "query", + "namespace" : "http://jabber.org/protocol/stats", + "wrapped" : true + } + }, "version" : { "description" : "Ask about software version information", "properties" : {