Queries the byte hit ratio (percentage of hit bytes) of an accelerated domain name.
Operation description
Currently, this operation is supported only in the China (Shanghai) region.
Batch queries are supported. You can query data for up to 500 domain names at a time.
If you do not specify
StartTimeandEndTime, data from the past 24 hours is returned by default. If you specifyStartTimeandEndTime, data for the specified time range is returned.
Time granularity of returned data
If you specify StartTime and EndTime without setting Interval, the default time granularity, the maximum time range for historical data queries, and the data delay are as follows:
| Time granularity | Time span per query | Maximum time range for historical data queries | Data delay |
| 5 minutes | Time span per query < 3 days | 93 days | 15 minutes |
| 1 hour | 3 days ≤ Time span per query < 31 days | 186 days | Generally 3 to 4 hours |
| 1 day | 31 days ≤ Time span per query ≤ 366 days | 366 days | Generally 4 hours, up to 24 hours |
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DescribeVodDomainHitRateData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
No |
The accelerated domain name to query.
|
example.com |
| StartTime |
string |
No |
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2024-01-20T13:59:58Z |
| EndTime |
string |
No |
The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note
The end time must be later than the start time. |
2024-01-20T14:59:58Z |
| Interval |
string |
No |
The time granularity of the data to query. Unit: seconds. Valid values: 300, 3600, and 86400. If you do not specify this parameter or specify an unsupported value, the default value is used. The supported time granularity varies based on the time span specified by
|
300 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| EndTime |
string |
The end of the time range for the returned data. |
2024-01-20T14:59:58Z |
| StartTime |
string |
The beginning of the time range for the returned data. |
2024-01-20T13:59:58Z |
| RequestId |
string |
The request ID. |
D94E471F-1A27-442E-552D-D4D2000C**** |
| DomainName |
string |
The accelerated domain name. |
example.com |
| DataInterval |
string |
The time interval between data entries, which is the time granularity of the data. Unit: seconds. |
300 |
| HitRateInterval |
object |
||
| DataModule |
array<object> |
The byte hit ratio data for each time interval. |
|
|
object |
|||
| Value |
string |
The total byte hit rate. |
100 |
| TimeStamp |
string |
The timestamp of the data returned. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. |
2024-01-20T13:59:58Z |
| HttpsValue |
string |
The HTTPS byte hit rate. |
50 |
Examples
Success response
JSON format
{
"EndTime": "2024-01-20T14:59:58Z",
"StartTime": "2024-01-20T13:59:58Z",
"RequestId": "D94E471F-1A27-442E-552D-D4D2000C****",
"DomainName": "example.com",
"DataInterval": "300",
"HitRateInterval": {
"DataModule": [
{
"Value": "100",
"TimeStamp": "2024-01-20T13:59:58Z",
"HttpsValue": "50"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | Both start time and end must be specified |
| 400 | InvalidStartTime.Malformed | The specified StartTime is invalid. | |
| 400 | InvalidEndTime.Malformed | The specified EndTime is invalid. | |
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | End time is earlier than start time |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.