Cloud Usage Statistics

Cloud Usage statistics show detailed information on the resources used by virtual servers.
To get the daily stats (information on the resources used by virtual servers), use the following request:

GET /usage_statistics.xml
GET /usage_statistics.json

This request sends back usage statistics for all virtual servers in the cloud (per VS for the last 48 hours).

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/usage_statistics.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/usage_statistics.json

XML Output Example

<vm_stats>
<vm_stat>
<data_sent>0.0</data_sent>
<reads_completed>328892.0</reads_completed>
<data_received>0.0</data_received>
<cpu_usage>2813.0</cpu_usage>
<virtual_machine_id>883</virtual_machine_id>
<writes_completed>193395.0</writes_completed>
<data_read>1315568.0</data_read>
<user_id>1</user_id>
<data_written>773580.0</data_written>
</vm_stat>
...
<vm_stat></vm_stat>
...
</vm_stats> 


Where:

data_sent - the amount of Kilobytes sent by this VS

reads_completed - the number of read operations performed by the disk

data_received - the amount of Kilobytes received by this VS

cpu_usage - the average CPU percentage that the VS has been using during the last 72 hours or during the specified period.

virtul_machine_id - the ID of the VS for which these statistics are generated

writes_completed - the number of write operations performed by the disk

data_read - the amount of data read from a disk in Kilobytes

data_written - the amount of data written to a disk in Kilobytes

Other statistics generated in the system: