mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
api: add getStats() function
This commit is contained in:
parent
eb45934788
commit
82b919fc65
3 changed files with 49 additions and 2 deletions
|
@ -65,7 +65,7 @@ Portal submits content into new blog post
|
|||
## Usage
|
||||
|
||||
### API version
|
||||
The latest version is `1.2.13`
|
||||
The latest version is `1.2.14`
|
||||
|
||||
The current version can be queried via /api.
|
||||
|
||||
|
@ -634,3 +634,14 @@ lists all pads on this epl instance
|
|||
|
||||
*Example returns:*
|
||||
* `{code: 0, message:"ok", data: {padIDs: ["testPad", "thePadsOfTheOthers"]}}`
|
||||
|
||||
### Global
|
||||
|
||||
#### getStats()
|
||||
* API >= 1.2.14
|
||||
|
||||
get stats of the etherpad instance
|
||||
|
||||
*Example returns*
|
||||
* `{"code":0,"message":"ok","data":{"totalPads":3,"totalSessions": 2,"totalActivePads": 1}}`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue