阅读367 返回首页    go windows


查询区域运营商资源信息__资源监控接口_API 手册_CDN-阿里云

描述

获取加速域名的在某个时刻不同Locate和Isp上的带宽数据,单位 bit/second

  • 不支持批量域名查询
  • 时间精确到5分钟粒度

请求参数

参数 类型 必要 描述
Action String 操作接口名,系统规定参数
取值:DescribeRangeDataByLocateAndIspService
DomainName String 要查询的域名,不能为空;
LocationNames String 需要查询目标节点列表,用“,”隔开,不能为空; Location名通过DescribeCdnRegionAndIsp接口获得;
IspNames String 需要查询目标Isp列表,用“,”隔开,不能为空; ISP名通过DescribeCdnRegionAndIsp接口获得;
StartTime String 开始时间,日期格式按照ISO8601表示法,并使用UTC时间。
格式为:YYYY-MM-DDThh:mm:ssZ
最小数据粒度为5分钟
EndTime String 结束时间,日期格式按照ISO8601表示法,并使用UTC时间。
格式为:YYYY-MM-DDThh:mm:ssZ

返回参数

名称 类型 描述
LocationAndISPInfoList LocationAndISPInfo 返回区域运营商监控信息

LocationAndISPInfo

名称 类型 描述
LocationAndISPJson String 数据json串

特殊错误码

错误代码 描述 Http 状态码 语义
InvalidDomainNames.Malformed Specified domainNames is malformed. 400 域名不合法
InvalidStartTime.Malformed Specified StartTime is malformed. 400 开始时间错误
InvalidEndTime.Malformed Specified EndTime is malformed. 400 结束时间错误
InvalidTime.ValueNotSupported StartTime or EndTime is miss match. 400 开始时间和结束时间不匹配
LossParams DomainNames, StartTime and EndTime should not be empty or domainName have been registered. 400 缺少参数
InvalidParams Your parameters is invalid. 400 参数不合法

示例

请求示例:

  1. https://cdn.aliyuncs.com?Action=DescribeDomainBpsDataByTimeStamp&DomainName=abc.com
  2. &LocationIds=liaoning,guangxi
  3. &IspIds=unicom,telecom
  4. &TimeStamp=2016-08-01T22:00:00Z
  5. &<公共请求参数>

返回示例:

JSON格式

  1. {
  2. "1472659200": {
  3. "天津市": {
  4. "电信": {
  5. "bandwidth": 9889849.592,
  6. "pv": 5739,
  7. "hit_rate": 0,
  8. "http_codes": {
  9. "200": 5675,
  10. "206": 5,
  11. "302": 5,
  12. "304": 45,
  13. "400": 1,
  14. "403": 8,
  15. "404": 0,
  16. "405": 0,
  17. "408": 0,
  18. "412": 0,
  19. "416": 0,
  20. "500": 0,
  21. "501": 0,
  22. "502": 0,
  23. "503": 0,
  24. "504": 0,
  25. "000": 0
  26. },
  27. "rt": 0
  28. },
  29. "联通":{},
  30. "移动":{}
  31. },
  32. "北京市": {
  33. "电信": {
  34. "bandwidth": 9889849.592,
  35. "pv": 5739,
  36. "hit_rate": 0,
  37. "http_codes": {
  38. "200": 5675,
  39. "206": 5,
  40. "302": 5,
  41. "304": 45,
  42. "400": 1,
  43. "403": 8,
  44. "404": 0,
  45. "405": 0,
  46. "408": 0,
  47. "412": 0,
  48. "416": 0,
  49. "500": 0,
  50. "501": 0,
  51. "502": 0,
  52. "503": 0,
  53. "504": 0,
  54. "000": 0
  55. },
  56. "rt": 0
  57. },
  58. "联通":{},
  59. "移动":{}
  60. }
  61. },
  62. "1472659500": {
  63. "天津市": {
  64. "电信": {
  65. "bandwidth": 7024681.44,
  66. "pv": 5819,
  67. "hit_rate": 0,
  68. "http_codes": {
  69. "200": 5716,
  70. "206": 11,
  71. "302": 3,
  72. "304": 72,
  73. "400": 1,
  74. "403": 16,
  75. "404": 0,
  76. "405": 0,
  77. "408": 0,
  78. "412": 0,
  79. "416": 0,
  80. "500": 0,
  81. "501": 0,
  82. "502": 0,
  83. "503": 0,
  84. "504": 0,
  85. "000": 0
  86. },
  87. "rt": 0
  88. },
  89. "联通":{},
  90. "移动":{}
  91. }
  92. }
  93. },
  94. "description": "Ok",
  95. "retCode": 0
  96. }

最后更新:2016-11-23 17:16:10

  上一篇:go 查询时刻网络带宽__资源监控接口_API 手册_CDN-阿里云
  下一篇:go 查询推流历史__直播流操作接口_API 手册_CDN-阿里云