DescribeLiveDomainPushTrafficData
Queries the stream ingest traffic monitoring data for ingest domains.
Operation description
The unit of the retrieved traffic monitoring data is bytes.
You can query multiple domain names at a time. Separate multiple domain names with commas (,).
If you do not specify StartTime and EndTime, the data of the last 24 hours is retrieved by default. You can also specify a start time and an end time to query data. Both parameters must be specified at the same time.
You can retrieve data of the last 90 days at most.
QPS limits
The QPS limit for a single user is 100 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveDomainPushTrafficData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
No |
The ingest domain. You can query multiple ingest domains at a time. Separate multiple ingest domains with commas (,). If this parameter is left empty, the merged data of all ingest domains is returned by default. |
demo.aliyundoc.com |
| StartTime |
string |
No |
The start time. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If you do not specify this parameter, the data of the last 24 hours is retrieved by default. |
2017-12-10T20:00:00Z |
| EndTime |
string |
No |
The end time. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2017-12-10T21:00:00Z |
| Interval |
string |
No |
The time granularity of the queried data. Unit: seconds. Valid values:
If this parameter is not specified or the specified value is not supported, the default value 300 is used. |
300 |
| IspNameEn |
string |
No |
The English name of the ISP. You can call the DescribeCdnRegionAndIsp operation to query ISPs. If you do not specify this parameter, all ISPs are queried by default. |
alibaba |
| LocationNameEn |
string |
No |
The English name of the region. You can call the DescribeCdnRegionAndIsp operation to query regions. If you do not specify this parameter, all regions are queried by default. |
tianjin |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end time. The time is in the yyyy-MM-ddTHH:mm:ssZ format and displayed in UTC. |
2017-12-10T21:00:00Z |
| StartTime |
string |
The start time. The time is in the yyyy-MM-ddTHH:mm:ssZ format and displayed in UTC. |
2017-12-10T20:00:00Z |
| RequestId |
string |
The request ID. |
3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F |
| DomainName |
string |
The ingest domain. |
demo.aliyundoc.com |
| DataInterval |
string |
The data time granularity. |
300 |
| TrafficDataPerInterval |
object |
||
| DataModule |
array<object> |
The traffic data collected at each time interval. |
|
|
object |
The time granularity of the traffic data. |
||
| TrafficValue |
string |
The traffic value. Unit: bytes. |
1288111 |
| TimeStamp |
string |
The start time of the time slice. The time is in the yyyy-MM-ddTHH:mm:ssZ format and displayed in UTC. |
2017-12-10T20:05:00Z |
Examples
Success response
JSON format
{
"EndTime": "2017-12-10T21:00:00Z",
"StartTime": "2017-12-10T20:00:00Z",
"RequestId": "3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F",
"DomainName": "demo.aliyundoc.com",
"DataInterval": "300",
"TrafficDataPerInterval": {
"DataModule": [
{
"TrafficValue": "1288111",
"TimeStamp": "2017-12-10T20:05:00Z"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 400 | InvalidEndTime.Mismatch | Specified end time does not math the specified start time. | The end time does not match the start time. Make sure that the start and end times match. |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.