Add system metrics & stats

Add repo, svc & rest endpoint for user, role & app metrics:
total, deleted, suspended, archived, ... counters
This commit is contained in:
Denis Arh
2019-11-18 13:08:12 +01:00
parent 20ffec0b21
commit bfe81deacc
15 changed files with 523 additions and 0 deletions
+25
View File
@@ -1133,6 +1133,31 @@ An organisation may have many roles. Roles may have many channels available. Acc
# Statistics
| Method | Endpoint | Purpose |
| ------ | -------- | ------- |
| `GET` | `/stats/` | List system statistics |
## List system statistics
#### Method
| URI | Protocol | Method | Authentication |
| --- | -------- | ------ | -------------- |
| `/stats/` | HTTP/S | GET | Client ID, Session ID |
#### Request parameters
| Parameter | Type | Method | Description | Default | Required? |
| --------- | ---- | ------ | ----------- | ------- | --------- |
| metrics | []string | GET | Get only specified metrics | N/A | NO |
---
# Subscription
| Method | Endpoint | Purpose |