- Print
- DarkLight
- PDF
Get Statistics List
- Print
- DarkLight
- PDF
Get statistics about the Rocket.Chat workspace.
Permission required: view-statistics
Changelog
Version | Description |
---|---|
0.51.0 | Added |
The token of the authenticated user.
The user ID of the authenticated user.
The number of items to return.
Number of items to "skip" in the query, i.e. requests return count
items, skipping the first offset
items.
List of fields to order by, and in which direction. JSON object, with properties listed in desired order, with values of 1 for ascending, or -1 for descending. For example, {"value": -1, "_id": 1}
This parameter accepts a JSON object with properties that have a value of 1 or 0 to include or exclude them in the response. For example, to only retrieve the usernames of users: fields={ "username": 1 }
This parameter allows you to use MongoDB query operators to search for specific data. For example, to query users with a name that contains the letter "g": query={ "name": { "$regex": "g" } }
OK
{
"statistics": [
{
"_id": "v3D4mvobwfznKozH8",
"uniqueId": "wD4EP3M7FeFzJZgk9",
"installedAt": "2018-02-18T19:40:45.369Z",
"version": "0.61.0-develop",
"totalUsers": 88,
"activeUsers": 88,
"nonActiveUsers": 0,
"onlineUsers": 0,
"awayUsers": 1,
"offlineUsers": 87,
"totalRooms": 81,
"totalChannels": 41,
"totalPrivateGroups": 37,
"totalDirect": 3,
"totlalLivechat": 0,
"totalMessages": 2408,
"totalChannelMessages": 730,
"totalPrivateGroupMessages": 1869,
"totalDirectMessages": 25,
"totalLivechatMessages": 0,
"lastLogin": "2018-02-24T12:44:45Z",
"lastMessageSentAt": "2018-02-23T06:14:03Z",
"lastSeenSubscription": "2018-02-23T05:58:54Z",
"instanceCount": 1,
"createdAt": "2018-02-24T15:13:00.312Z",
"_updatedAt": "2018-02-24T15:13:00.312Z"
}
],
"count": 1,
"offset": 0,
"total": 1,
"success": true
}
Bad Request
{
"success": false,
"error": "error-not-allowed"
}
Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}