(Available from version 1.4) This operation returns detailed CDN usage data for all stream targets in the account. Defaults: from = last billing date, to = end of current day.
Success
object (Array of stream targets) An array of stream targets and the details of their CDN usage. | |
object Page information for the results generated by the query. | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v2.0/usage/stream_targets"
{- "stream_targets": [
- {
- "id": "tvctq36g",
- "name": "My Stream Target",
- "archived": true,
- "type": "fastly",
- "viewing_seconds": 44925498,
- "viewing_bytes": 22886
}, - {
- "id": "bac1256",
- "name": "My Other Stream Target",
- "archived": false,
- "type": "fastly",
- "viewing_seconds": 593275043,
- "viewing_bytes": 22886
}
], - "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"
}
}
(Available from version 1.4) This operation returns CDN usage details for a specific stream target. Defaults: from = last billing date, to = end of current day.
Success
object (stream_target) | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v2.0/usage/stream_targets/2adffc17"
{- "stream_target": {
- "id": "tvctq36g",
- "name": "My Stream Target",
- "archived": true,
- "type": "fastly",
- "viewing_seconds": 44925498,
- "viewing_bytes": 22886,
- "trend": [
- {
- "sampled_at": "2019-10-01T08:00:00.000Z",
- "viewing_seconds": 45,
- "viewing_bytes": 20
}
], - "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 22886
}
]
}, - "limits": {
- "from": "2019-11-07T00:00:00.000Z",
- "to": "2019-12-05T00:00:00.000Z"
}
}
(Available from version 1.4) This operation returns a summary of CDN usage for all stream targets in the account. Defaults: from = last billing date, to = end of current day.
Success
object (summary) | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v2.0/usage/stream_targets/summary"
{- "summary": {
- "viewing_seconds": 67925498,
- "viewing_bytes": 22886,
- "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 12886
}
]
}, - "limits": {
- "from": "2019-11-07T00:00:00.000Z",
- "to": "2019-12-05T00:00:00.000Z"
}
}