Go to file
Javier Sánchez Parra 3b4aa721a4 #915 Add GET /stats REST request
This request returns certain statistics on memory and swap usage, as
well as the uptime.

The below structure gives the sizes of the memory and swap fields in
bytes.

Request: GET /stats
NO BODY

Response: 200 OK
{
   "time": {
      "now": 1647262765,     /* Seconds since 1970 */
      "boot": 2151909        /* Seconds since boot */
   },
   "memory": {
      "size": 4104679424,    /* Total usable main memory size */
      "free": 322174976      /* Available memory size */
   },
   "swap": {
      "size": 2147479552,    /* Total swap space size */
      "free": 2122563584     /* Swap space still available */
   }
}
2022-03-14 14:46:13 +01:00
cfg #981 Use 'Wants' for mysql systemd unit dependency 2021-07-27 17:12:40 +02:00
src #915 Add GET /stats REST request 2022-03-14 14:46:13 +01:00
tests #915 Add commands and procedures to procedure creation 2021-06-10 17:00:01 +02:00
.gitignore #985 add .gitignore file 2020-06-17 18:20:32 +02:00
COPYING #985 add COPYING file 2020-06-18 16:48:20 +02:00
Makefile.am #915 Add schedule/command 2021-06-09 13:41:28 +02:00
configure.ac #986 rename to ogserver 2020-06-19 11:19:55 +02:00