DescribeDomainHttpCodeData
描述
获取加速域名最小5分钟粒度的HTTP返回码占比数据
不指定StartTime和EndTime时,默认读取过去24小时的数据,同时支持按指定的起止时间查询,两者需要同时指定。
参数 | 类型 | 必要 | 描述 |
Action | String | 是 | 操作接口名,系统规定参数取值:DescribeDomainHttpCodeData |
DomainName | String | 是 | 需要查询的加速域名,支持批量,多个域名用逗号(半角)分隔 |
StartTime | String | 否 | 获取数据起始时间点,日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mmZ最小数据粒度为5分钟不写默认读取过去24小时数据 |
EndTime | String | 否 | 结束时间需大于起始时间;获日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mmZ |
Time erge | String | 否 | 取值范围 on:默认值,每条记录的时间间隔会根据时间跨度做合并;off:返回5分钟粒度数据,最大时间跨度为31天 |
Interval | String | 否 | 查询数据的时间粒度,支持300, 3600, 14400, 28800和86400秒。不传和传的值不支持时,使用默认值300秒 |
LocationNameEn | String | 否 | 区域英文名,通过DescribeCdnRegionAndIsp接口获得,不传为所有区域 |
IspNameEn | String | 否 | 运营商英文名,通过DescribeCdnRegionAndIsp接口获得,不传为所有运营商 |
名称 | 类型 | 描述 |
RequestId | String | 请求ID |
DomainName | String | 加速域名信息 |
DataInterval | String | 每条记录的时间间隔,以秒为单位,固定值300S |
StartTime | DateTime | 开始时间 |
EndTime | DateTime | 结束时间 |
HttpCodeData | UsageData[] | 每个时间间隔的HTTP返回码占比数据 |
名称 | 类型 | 描述 |
TimeStamp | String | 时间片起始时刻 |
Value | CodeProportionData[] | 各返回码占比使用数据list |
名称 | 类型 | 描述 |
Code | String | http返回码 |
Proportion | String | 占比使用数据 |
错误代码 | 描述 | Http 状态码 | 语义 |
Throttling | Request was denied due to request throttling. | 503 | 请求被流量控制限制 |
IllegalOperation | Illegal domain, operation is not permitted. | 403 | 非法域名, 无法操作 |
OperationDenied | Your account does not open CDN service yet. | 403 | 未开通CDN服务 |
OperationDenied | Your CDN service is suspended. | 403 | CDN服务已被停止 |
InvalidDomain.NotFound | The domain provided does not belong to you. | 404 | 域名不存在或不属于当前用户 |
InvalidDomain.Offline | The domain provided is offline. | 404 | 域名已下线 |
ServiceBusy | The specified Domain is configuring, please retry later. | 403 | 域名正在配置中, 请稍后再试 |
InvalidDomain.Configure_failed | Failed to configure the provided domain. | 500 | 域名配置失败 |
MissingParameter | StartTime and EndTime can not be single. | 400 | StartTime和EndTime不能单独设置 |
InvalidStartTime.Malformed | Specified start time is malformed. | 400 | StartTime格式错误 |
InvalidEndTime.Malformed | Specified end time is malformed. | 400 | EndTime格式错误 |
InvalidEndTime.Mismatch | Specified end time does not math the specified start time. | 400 | EndTime小于StartTime |
InvalidStartTime.ValueNotSupported | Specified end time does not math the specified start time. | 400 | EndTime和StartTime差值超过90天 |
http://cdn.aliyuncs.com?Action=DescribeDomainHttpCodeData&DomainName="test.com,abc.com"
&StartTime=2015-11-30T05:33Z
&EndTime=2015-11-30T05:40Z
&<公共请求参数>
{
"HttpCodeData": {
"UsageData": [
{
"TimeStamp": "2015-11-30T05:40:00Z",
"Value": {
"CodeProportionData": [
{
"Proportion": "66.046511627907",
"Code": "200"
},
{
"Proportion": "4.72868217054264",
"Code": "206"
},
{
"Proportion": "0.155038759689922",
"Code": "302"
},
{
"Proportion": "0.62015503875969",
"Code": "304"
},
{
"Proportion": "28.4496124031008",
"Code": "500"
}
]
}
},
{
"TimeStamp": "2015-11-30T05:35:00Z",
"Value": {
"CodeProportionData": [
{
"Proportion": "64.7822765469824",
"Code": "200"
},
{
"Proportion": "3.74331550802139",
"Code": "206"
},
{
"Proportion": "0.152788388082506",
"Code": "302"
},
{
"Proportion": "1.90985485103132",
"Code": "304"
},
{
"Proportion": "29.4117647058824",
"Code": "500"
}
]
}
},
{
"TimeStamp": "2015-11-30T05:30:00Z",
"Value": {
"CodeProportionData": [
{
"Proportion": "67.1458998935037",
"Code": "200"
},
{
"Proportion": "12.6730564430245",
"Code": "206"
},
{
"Proportion": "0.053248136315229",
"Code": "302"
},
{
"Proportion": "0.958466453674121",
"Code": "304"
},
{
"Proportion": "19.1693290734824",
"Code": "500"
}
]
}
}
]
},
"DataInterval": "300",
"RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7",
"DomainName": "test.com,abc.com",
"EndTime": "2015-11-30T05:40Z",
"StartTime": "2015-11-30T05:33Z"
}
<DescribeDomainHttpCodeProportionDataResponse>
<HttpCodeProportionData>
<UsageData>
<TimeStamp>2015-11-30T05:40:00Z</TimeStamp>
<Value>
<CodeProportionData>
<Proportion>66.046511627907</Proportion>
<Code>200</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>4.72868217054264</Proportion>
<Code>206</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>0.155038759689922</Proportion>
<Code>302</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>0.62015503875969</Proportion>
<Code>304</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>28.4496124031008</Proportion>
<Code>500</Code>
</CodeProportionData>
</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-30T05:35:00Z</TimeStamp>
<Value>
<CodeProportionData>
<Proportion>64.7822765469824</Proportion>
<Code>200</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>3.74331550802139</Proportion>
<Code>206</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>0.152788388082506</Proportion>
<Code>302</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>1.90985485103132</Proportion>
<Code>304</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>29.4117647058824</Proportion>
<Code>500</Code>
</CodeProportionData>
</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-30T05:30:00Z</TimeStamp>
<Value>
<CodeProportionData>
<Proportion>67.1458998935037</Proportion>
<Code>200</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>12.6730564430245</Proportion>
<Code>206</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>0.053248136315229</Proportion>
<Code>302</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>0.958466453674121</Proportion>
<Code>304</Code>
</CodeProportionData>
<CodeProportionData>
<Proportion>19.1693290734824</Proportion>
<Code>500</Code>
</CodeProportionData>
</Value>
</UsageData>
</HttpCodeProportionData>
<DataInterval>300</DataInterval>
<RequestId>82807D80-1C41-40A5-AFC3-53F739951A4C</RequestId>
<DomainName>test.com,abc.com</DomainName>
<EndTime>2015-11-30T05:40Z</EndTime>
<StartTime>2015-11-30T05:33Z</StartTime>
</DescribeDomainHttpCodeProportionDataResponse>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。