Fetch usage for all real-time streams
GET {{baseUrl}}/usage/real_time_streams
(Available from version 1.9) This operation returns detailed CDN usage data for all real-time streams in the account. Defaults: from = last billing date, to = end of current day.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | The start of the range of time you want to view. Specify YYYY-MM-DD HH:00:00 where HH is a 24-hour clock in UTC. The range doesn't include minutes and seconds and rounds minutes up to the hour. The maximum difference between from and to is 90 days. If you set the from query parameter without setting the to query parameter, the data returned will reflect 90 days starting at the from date, or data up to to the current day, whichever is shorter. T |
You can also specify last_bill_date.
Default: last billing date |
| to
| string | | The end of the range of time you want to view. Specify YYYY-MM-DD HH:00:00 where HH is a 24-hour clock in UTC. The range doesn't include minutes and seconds and rounds minutes up to the hour. The maximum difference between from and to is 90 days. If you set the to query parameter without setting the from query parameter, the data returned will be from the past 90 days or from your last invoice date, whichever is shorter.
You can also specify last_bill_date.
Default: end of the current day |
| next_page_key
| string | | (Available from version 1.5) Returns a paginated view of results from the HTTP request. Specify a page key ID to indicate which page of the results should be displayed. |
| per_page
| number | | For use with the next_page_key parameter. Indicates how many records should be included in a page of results. A valid value is any positive integer. The default and maximum value is 1000. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"real_time_streams":[{"id":"tvctq36g","name":"My Real Time Stream","bytes_in":0,"bytes_out":222},{"id":"bac1256","name":"My Other Real Time Stream","bytes_in":888,"bytes_out":1111}],"pagination":{"payload_version":"2.0","total_records":269,"next_page_key":"2jj8syfl","per_page":10,"total_pages":27},"limits":{"from":"2019-11-07T00:00:00.000Z","to":"2019-12-05T00:00:00.000Z"}}