Get server stat
GetStatsByServer¶
Description:
Returns a list of server performance metrics over a specified time range.
Access Control¶
🛡️ Access Level Required:
SESSION_MANAGER,SESSION_ADMIN,SESSION_DEALER
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
| from | int | âś… | Start timestamp (UNIX) |
| to | int | âś… | End timestamp (UNIX) |
Response¶
A list of metric records under the rows key.
| Field | Type | Description |
|---|---|---|
| connections | int | Number of current active connections |
| requests | int | Total handled requests |
| cpu_load | float | CPU usage in percent |
| disk_load | float | Disk I/O usage |
| network_load | float | Network bandwidth usage |
| ram_load | float | RAM usage in percent |
| time | int | Timestamp of the metric snapshot |
Example Response¶
{
"rows": [
{
"connections": 123,
"requests": 4567,
"cpu_load": 23.5,
"disk_load": 14.8,
"network_load": 5.2,
"ram_load": 67.1,
"time": 1712345678
}
]
}
Errors¶
| Code | Description |
|---|---|
| 400 | Invalid request data |
| 500 | Internal server error |