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
+18
View File
@@ -1971,5 +1971,23 @@
}
}
]
},
{
"title": "Statistics",
"entrypoint": "stats",
"path": "/stats",
"authentication": [
"Client ID",
"Session ID"
],
"apis": [
{
"name": "list",
"method": "GET",
"title": "List system statistics",
"path": "/",
"parameters": {}
}
]
}
]
+30
View File
@@ -0,0 +1,30 @@
{
"Title": "Statistics",
"Interface": "Stats",
"Struct": null,
"Parameters": null,
"Protocol": "",
"Authentication": [
"Client ID",
"Session ID"
],
"Path": "/stats",
"APIs": [
{
"Name": "list",
"Method": "GET",
"Title": "List system statistics",
"Path": "/",
"Parameters": {
"get": [
{
"name": "metrics",
"required": false,
"title": "Get only specified metrics",
"type": "[]string"
}
]
}
}
]
}