Server metrics
GET
https://api.vpsbg.eu/v1/servers/{id}/metricsThis endpoint will return past health data for your server - state and resource usage.
Request
Path Params
id
integer
required
VPSBG's ID of your server
Query Params
filter[month]
number
optional
A number representing the month.
filter[year]
number
optional
A four-digit number representing the year.
Body Params text/plain
Request samples
Responses
List of historical data points and server metrics, sorted in descending order with the newest data at the top.(200)
List of historical data points and server metrics, sorted in descending order with the newest data at the top.
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
array [object {8}]
optional
timestamp
integer
optional
Unix timestamps when the data was captured.
running
boolean
optional
Whether the server was running or not at the time of capturing the data.
cpu
number
optional
CPU Usage %
network_in
number
optional
Received traffic in MB/s.
network_out
number
optional
Sent traffic in MB/s.
disk
number
optional
Disk usage in GB/s.
io_read
integer
optional
Read I/O in MB/s.
io_write
number
optional
Write I/O in MB/s.
ExampleExample 1
{
"data": [
{
"timestamp": 1696888806,
"running": true,
"cpu": 2,
"network_in": 0.006080078125,
"network_out": 0.000115234375,
"disk": 3.8271484375,
"io_read": 0,
"io_write": 0.0106669921875
},
{
"timestamp": 1696888562,
"running": true,
"cpu": 1.9,
"network_in": 0.006513671875,
"network_out": 0.00012890625,
"disk": 3.8271484375,
"io_read": 0,
"io_write": 0.0026669921875
}
]
}
Last modified: 3 months ago