Object Storage Orchestration API Reference

Table Of Contents
Chapter 3. Usage Statistics
...
]
}
If obj is specified:
{ "fmt_version": version of response format,
"service_id": idof a service that collected statistics,
"start_ts": timestamp of statistics upload,
"period": statistics upload period in seconds,
"nr_items": number of counters,
"items": [//list of usage counters
{
"key": { "bucket": "bucket-name", "epoch":bucket's epoch, "user_id": "user id", "tag": "statistics object tag" },
"counters": {
"ops": { "put":count of put ops, "get": count of get ops, "list": count of list ops, "other": count of other ops },
"net_io": { "uploaded":number of uploaded bytes during the period,
"downloaded": number of downloaded bytes during the period }
}
},
...
]
}
3.1.4 Examples
3.1.4.1 Sample Request #1
The following request returns information about all statistics objects.
GET /?ostor-usage /HTTP1.1
Date : Mon, 11 Apr 2016 16:43:16 GMT+3:00
Host : ostor-test-1
Authorization : <authorization_string>
3.1.4.2 Sample Response #1
HTTP/1.1 200 OK
x-amz-req-time-micros : 404
Transfer-encoding : chunked
Server : nginx/1.8.1
Connection : keep-alive
x-amz-request-id : 80000000000000030006b6be3b0ae378
Date : Mon, 11 Apr 2016 13:43:16 GMT
Content-type : application/json
28