Skip to content

Statistics

Get Server Statistics

GET /statistics

Authorization:

  • Requires Basic Authentication (basicAuth)

Query Parameters

Parameter Type Required Description
from string Yes Start date/time (ISO 8601 format, e.g. 2023-01-01T00:00:00Z)
to string Yes End date/time (ISO 8601 format, e.g. 2023-01-01T23:59:59Z)

Request Examples

With Basic Auth:

curl -X GET "https://itsochvts.com/api/statistics?from=2023-01-01T00:00:00Z&to=2023-01-01T23:59:59Z" \
  -u "username:password"

With Cookie:

curl -X GET "https://itsochvts.com/api/statistics?from=2023-01-01T00:00:00Z&to=2023-01-01T23:59:59Z" \
  -H "Cookie: session=abc123"

Response Body Schema

Field Type Description
captureTime string Statistics capture timestamp (ISO 8601)
activeUsers integer Number of active users
activeDevices integer Number of active devices
requests integer Total request count
messagesReceived integer Total messages received
messagesStored integer Total messages stored
200 OK - Response Body
[
  {
    "captureTime": "2025-02-18T07:22:23Z",
    "activeUsers": 0,
    "activeDevices": 0,
    "requests": 0,
    "messagesReceived": 0,
    "messagesStored": 0
  }
]