Description

The Unit is B/s(Byte/second)

Request URL

Compute API v2.0

GET /v2/{tenant_id}/servers/{server_id}/rrd/disk

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
tenant_id URI
server_id Server ID URI
device (Optional) Name of Disk Device(vda, vdb, etc) query Default:vda(device for vm instance)
start_date_raw (Optional) Starting time (UNIX Time) query Default: 1 day ago
end_date_raw (Optional) Ending Time (UNIX Time) query Default: Current Time
mode (Optional) Mode of Data Handling query {average,max,min} Default: average

Normal response codes

200

Example

curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
https://compute.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/rrd/disk?device=vda\&start_date_raw=1426529435\&end_date_raw=1426532835\&mode=average
HTTP/1.1 200 OK
Date: Thu, 19 Mar 2015 01:31:26 GMT
Server: Apache
Content-Length: 1337
Content-Type: application/json

{
  "disk": {
    "schema": [
      "unixtime",
      "read",
      "write"
    ],
    "data": [
      [
        1426529500,
        0,
        453.8368
      ],
      [
        1426530000,
        0,
        386.6624
      ],
(snip)
      [
        1426532500,
        0,
        598.016
      ],
      [
        1426533000,
        0,
        437.4528
      ]
    ]
  }
}