Get Accelerator CPU Usage Statistics
To view CPU usage statistics of an accelerator, use the following request:
GET /accelerators/:accelerator_id/cpu_usage.xml
GET /accelerators/:accelerator_id/cpu_usage.json
Define a shorter period by setting Start and End time in the API call:
GET /accelerators/:accelerator_id/vm_stats.xml?period[startdate]=YYYY-MM-DD+hh:mm:ss&period[enddate]=YYYY-MM-DD+hh:mm:ss&period[use_local_time]=1
GET /accelerators/:accelerator_id/vm_stats.json?period[startdate]=YYYY-MM-DD+hh:mm:ss&period[enddate]=YYYY-MM-DD+hh:mm:ss&period[use_local_time]=1
XML Request Example
curl -i GET -u user:userpass --url http://onapp.test/accelerators/21/cpu_usage.xml
XML Request Example
curl -i GET -u user:userpass --url http://onapp.test/accelerators/21/cpu_usage.json
Where you have to specify the accelerator ID.