Object Storage Orchestration API Reference

CHAPTER 3
Usage Statistics
The S3 gateway can collect usage statistics for S3 users and S3 buckets. The collected data are saved as regular
Object Storage objects. One such object contains statistics for the set usage period.
To enable statistics collection, set S3_GW_USAGE_BUCKET to True in the gateway configuration file
(/var/lib/ostor/local/gw.conf by default).
Other options you may need to set are: S3_GW_USAGE_PERIOD (usage period in a single statistics object, in seconds)
and S3_GW_USAGE_CACHE_TIMEOUT (the frequency of dumping statistics from memory to storage, in seconds).
3.1 GET Service ostor-usage
3.1.1 Description
Lists existing statistics objects or queries information contained in a specified object.
3.1.2 Requests
3.1.2.1 Syntax
GET /?ostor-users HTTP/1.1
Host: s3.amazonaws.com
Date: <date>
Authorization: <authorization_string>
25