Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-07-20 11:46:10
The API request contains the specified directory /2020-06-30/statistics/GetSrcDomainHttpCodeDetailedData, common request headers, and operation-specific request parameters. For more information, see the sample request.
Parameter | Required | Type | Description |
---|---|---|---|
StartTime | Yes | String | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm+0800 format. The time must be in UTC+8. Example: 2016-08-01T21:10+0800. |
EndTime | Yes | String | The end of the time range to query. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm+0800 format. The time must be in UTC+8. The end time must be later than the start time. Example: 2016-08-01T21:15+0800. |
Interval | No | Long | The time granularity of the statistics data. Valid values: 1 (one minute), 5 (five minutes), 60 (one hour), and 1440 (one day). For granularities that are greater than or equal to 5 minutes, the sum of values collected in the five-minute periods contained in the granularity is used. The default granularity is 5 minutes. When the granularity is 1 minute, the start time and the end time cannot be more than 24 hours apart. When the granularity is 5 minutes, the start time and the end time cannot be more than 31 days apart. For other granularities, the start time and the end time cannot be more than 90 days apart. |
CdnType | Yes | String | The business type. You can specify only one type at a time. Valid values: file, video, and page. |
Domains | No | String | The domain names to query. Separate multiple domain names with commas (,). By default, all domain names of the current account that are online in the specified time period are queried. |
Schema | No | String | The protocol type. Valid values: http, http, and quic. You can specify only one type at a time. By default, all types are queried. |
CodeType | No | String | The status code types. Valid values: 2xx, 3xx, 4xx, and 5xx. By default, all types are queried. Separate multiple status code types with commas (,). |
ResultType | No | String | Specifies whether to expand the statistics data and, if yes, in which dimensions. Valid values: unexpand, domain (expand by domain name), code (expand by status code), and expand. Default value: unexpand. |
Parameter | Type | Description |
---|---|---|
StartTime | String | The beginning of the time range that is queried. |
EndTime | String | The end of the time range that is queried. |
Interval | Long | The time granularity. |
CdnType | String | The business type. |
Domains | String | The domain names, separated with commas (,). |
Schema | String | The protocol type. |
ResultType | String | Indicates whether the statistics data is expanded and, if yes, in which dimensions. |
CodeType | String | The status code types. Valid values: 2xx, 3xx, 4xx, and 5xx. Multiple status code types are separated with commas (,). |
Datas | Datas[] | The HTTP status codes in different time granularities and their percentage. |
Parameter | Type | Description |
---|---|---|
Condition | Condition | The query conditions. |
HttpCodeData | HttpCodeData[] | The HTTP status codes. |
Parameter | Type | Description |
---|---|---|
Domains | String | The domain names, separated with commas (,). |
Parameter | Type | Description |
---|---|---|
Time | String | The time point. |
CodeType | CodeType[] | The HTTP status code types and percentage. The types include 2xx, 3xx, 4xx, and 5xx. |
CodeDetailDatas | CodeDetailDatas[] | The HTTP status codes, such as 200 or 404, and their percentage. |
Parameter | Type | Description |
---|---|---|
CodeType | String | The type of the HTTP status code. |
Pv | Long | The number of requests responded with status codes of this type. |
Proportion | Double | The percentage of requests responded with status codes of this type. |
Parameter | Type | Description |
---|---|---|
Code | String | The HTTP status code. |
Pv | Long | The number of requests responded with this status code. |
Proportion | Double | The percentage of requests responded with this status code. |
Sample request
GET method:
GET /2020-06-30/statistics/GetSrcDomainHttpCodeDetailedData?StartTime=2020-09-01T08%3a00%2b0800&EndTime=2020-09-01T08%3a05%2b0800&Interval=5&CdnType=video&Domains=www.test.com&Schema=&CodeType=2xx,4xx&ResultType=
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetSrcDomainHttpCodeDetailedData
x-version: 2020-06-30
POST method:
POST /2020-06-30/statistics/GetSrcDomainHttpCodeDetailedData
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetSrcDomainHttpCodeDetailedData
x-version: 2020-06-30
Content-Type: application/json
{
"StartTime":"2020-09-01T08:00+0800",
"EndTime":"2020-09-01T08:05+0800",
"Interval":5,
"CdnType":"video",
"Domains":"www.test.com",
"Schema":"",
"CodeType":"2xx,4xx",
"ResultType":""
}
Sample response
{
"StartTime": "2020-09-01T08:00+0800",
"EndTime": "2020-09-01T08:05+0800",
"Interval":5,
"CdnType": "video",
"Domains": "www.test.com",
"Schema": "http,https,quic",
"CodeType":"2xx,4xx",
"ResultType": "unexpand",
"Datas": [
{
"Condition":
{
"Domains":"www.test.com"
},
"httpcodeData":
[
{
"Time":"2020-09-01T08:00+0800",
"CodeType":
[
{
"CodeType":"2xx",
"PV":300,
"Proportion":50
},
{
"CodeType":"4xx",
"PV":300,
"Proportion":50
}
]
},
{
"Time":"2020-09-01T08:05+0800",
"CodeType":
[
{
"CodeType":"2xx",
"PV":300,
"Proportion":50
},
{
"CodeType":"4xx",
"PV":300,
"Proportion":50
}
]
},
]
}
],
"RequestId": "7f9c419a-3f57-433b-8389-a6fcb68c8d8e"
}
Pure Mode