全部产品
存储与CDN 数据库 安全 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 开发者工具 解决方案 物联网
专有网络 VPC

查询共享带宽包公网IP监控信息

更新时间:2017-06-07 13:26:11

描述

查询指定共享带宽包中某个指定IP的监控信息。

支持的监控项包括:

  • RX :接收流量,单位为Bytes;
  • TX :发送流量,单位为Bytes;
  • Flow: 总流量(包含发送和接收) (=RX + TX),单位为Bytes;
  • ReceivedBandwidth : 接收数据平均带宽 (=RX/Period),单位为Bytes/s;
  • TransportedBandwidth:发送数据平均带宽 (=TX/Period),单位为Bytes/s;
  • Bandwidth: 平均带宽(包含发送和接收) (=Flow/Period),单位为Bytes/s;
  • Packets:发送和接收的总报文数,单位为个;

支持的查询时间精度(一条数据包含多长时间的监控数据):

  • 60s
  • 600s
  • 3600s

查询的时间范围:

  • StartTime:
    • 必须小于当前时间
    • 必须在最近一个月之内
  • EndTime:
    • 必须小于当前时间
    • (EndTime – StartTime)/ Period 必须<= 200

请求参数

名称 类型 是否必须 描述
Action String 系统规定参数,取值:DescribeBandwidthPackagePublicIpMonitorData
RegionId String Region ID
AllocationId String 共享带宽包中的公网IP的AllocationId
StartTime String 获取数据的起始时间点:按照 ISO8601 标准表示,并需要使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ。
如果秒不是 00,则自动取为下一分钟开始时
UTC时间并非为北京时区,国内用户调用时请注意时区转换。
EndTime String 获取数据的结束时间点:按照 ISO8601 标准表示,并需要使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ。
如果秒不是 00,则自动取为下一分钟开始时
Period String 获取监控数据的精度;单位为秒;含义是,一个监控数据点对应多大时间范围内的数据。
可选值:60 | 600 | 3600
默认 60 秒。

返回参数

名称 类型 描述
MonitorData BandwidthPackagePublicIPMonitorDataSetType IP监控数据BandwidthPackagePublicIPMonitorDataItemType组成的集合

错误码

TODO

示例

请求示例

  1. https://vpc.aliyuncs.com/?SignatureVersion=1.0&Format=xml&TimeStamp=2016-08-18T08%3A58%3A52Z&RegionId=cn-shanghai&Period=600&AccessKeyId=jZgi0oyrQ6ihgKp9&SignatureMethod=HMAC-SHA1&Version=2016-04-28&StartTime=2016-08-17T14%3A00%3A00Z&Signature=Sb9HDrBwS2z7FLig%2F46l%2BLXFX7s%3D&Action=DescribeBandwidthPackagePublicIpMonitorData&SignatureNonce=fc7b2405-6521-11e6-bd54-2cf0ee28adf2&EndTime=2016-08-18T17%3A00%3A00Z&AllocationId=nateip-ebg8ebmaq

返回示例

XML格式

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <DescribeBandwidthPackagePublicIpMonitorDataResponse>
  3. <MonitorDatas>
  4. <MonitorData>
  5. <TimeStamp>2016-08-17T16:30:00Z</TimeStamp>
  6. <Flow>684112008</Flow>
  7. <RX>645565748</RX>
  8. <TransportedBandwidth>64243</TransportedBandwidth>
  9. <Packets>1715800</Packets>
  10. <TX>38546260</TX>
  11. <ReceivedBandwidth>1075942</ReceivedBandwidth>
  12. <Bandwidth>1140186</Bandwidth>
  13. </MonitorData>
  14. <MonitorData>
  15. <TimeStamp>2016-08-17T14:50:00Z</TimeStamp>
  16. <Flow>2984655</Flow>
  17. <RX>2911613</RX>
  18. <TransportedBandwidth>121</TransportedBandwidth>
  19. <Packets>3309</Packets>
  20. <TX>73042</TX>
  21. <ReceivedBandwidth>4852</ReceivedBandwidth>
  22. <Bandwidth>4974</Bandwidth>
  23. </MonitorData>
  24. <MonitorData>
  25. <TimeStamp>2016-08-17T15:40:00Z</TimeStamp>
  26. <Flow>402284862</Flow>
  27. <RX>378446412</RX>
  28. <TransportedBandwidth>39730</TransportedBandwidth>
  29. <Packets>1022979</Packets>
  30. <TX>23838450</TX>
  31. <ReceivedBandwidth>630744</ReceivedBandwidth>
  32. <Bandwidth>670474</Bandwidth>
  33. </MonitorData>
  34. <MonitorData>
  35. <TimeStamp>2016-08-17T15:30:00Z</TimeStamp>
  36. <Flow>330473138</Flow>
  37. <RX>310734504</RX>
  38. <TransportedBandwidth>32897</TransportedBandwidth>
  39. <Packets>841845</Packets>
  40. <TX>19738634</TX>
  41. <ReceivedBandwidth>517890</ReceivedBandwidth>
  42. <Bandwidth>550788</Bandwidth>
  43. </MonitorData>
  44. <MonitorData>
  45. <TimeStamp>2016-08-17T16:10:00Z</TimeStamp>
  46. <Flow>385157738</Flow>
  47. <RX>361935790</RX>
  48. <TransportedBandwidth>38703</TransportedBandwidth>
  49. <Packets>984581</Packets>
  50. <TX>23221948</TX>
  51. <ReceivedBandwidth>603226</ReceivedBandwidth>
  52. <Bandwidth>641929</Bandwidth>
  53. </MonitorData>
  54. <MonitorData>
  55. <TimeStamp>2016-08-17T16:00:00Z</TimeStamp>
  56. <Flow>369814238</Flow>
  57. <RX>347884682</RX>
  58. <TransportedBandwidth>36549</TransportedBandwidth>
  59. <Packets>940426</Packets>
  60. <TX>21929556</TX>
  61. <ReceivedBandwidth>579807</ReceivedBandwidth>
  62. <Bandwidth>616357</Bandwidth>
  63. </MonitorData>
  64. <MonitorData>
  65. <TimeStamp>2016-08-17T15:50:00Z</TimeStamp>
  66. <Flow>289658680</Flow>
  67. <RX>272298863</RX>
  68. <TransportedBandwidth>28933</TransportedBandwidth>
  69. <Packets>738351</Packets>
  70. <TX>17359817</TX>
  71. <ReceivedBandwidth>453831</ReceivedBandwidth>
  72. <Bandwidth>482764</Bandwidth>
  73. </MonitorData>
  74. <MonitorData>
  75. <TimeStamp>2016-08-17T15:10:00Z</TimeStamp>
  76. <Flow>329987258</Flow>
  77. <RX>309588891</RX>
  78. <TransportedBandwidth>33997</TransportedBandwidth>
  79. <Packets>849616</Packets>
  80. <TX>20398367</TX>
  81. <ReceivedBandwidth>515981</ReceivedBandwidth>
  82. <Bandwidth>549978</Bandwidth>
  83. </MonitorData>
  84. <MonitorData>
  85. <TimeStamp>2016-08-17T15:00:00Z</TimeStamp>
  86. <Flow>584627748</Flow>
  87. <RX>565902763</RX>
  88. <TransportedBandwidth>31208</TransportedBandwidth>
  89. <Packets>850916</Packets>
  90. <TX>18724985</TX>
  91. <ReceivedBandwidth>943171</ReceivedBandwidth>
  92. <Bandwidth>974379</Bandwidth>
  93. </MonitorData>
  94. <MonitorData>
  95. <TimeStamp>2016-08-17T16:20:00Z</TimeStamp>
  96. <Flow>373465592</Flow>
  97. <RX>350874730</RX>
  98. <TransportedBandwidth>37651</TransportedBandwidth>
  99. <Packets>952816</Packets>
  100. <TX>22590862</TX>
  101. <ReceivedBandwidth>584791</ReceivedBandwidth>
  102. <Bandwidth>622442</Bandwidth>
  103. </MonitorData>
  104. <MonitorData>
  105. <TimeStamp>2016-08-17T15:20:00Z</TimeStamp>
  106. <Flow>412303886</Flow>
  107. <RX>387678827</RX>
  108. <TransportedBandwidth>41041</TransportedBandwidth>
  109. <Packets>1050062</Packets>
  110. <TX>24625059</TX>
  111. <ReceivedBandwidth>646131</ReceivedBandwidth>
  112. <Bandwidth>687173</Bandwidth>
  113. </MonitorData>
  114. </MonitorDatas>
  115. <RequestId>3857BEE6-B7BB-4373-B7A4-F59D02B9BB24</RequestId>
  116. </DescribeBandwidthPackagePublicIpMonitorDataResponse>

JSON格式

  1. {
  2. "MonitorDatas": {
  3. "MonitorData": [
  4. {
  5. "Bandwidth": 1140186,
  6. "Flow": 684112008,
  7. "Packets": 1715800,
  8. "RX": 645565748,
  9. "ReceivedBandwidth": 1075942,
  10. "TX": 38546260,
  11. "TimeStamp": "2016-08-17T16:30:00Z",
  12. "TransportedBandwidth": 64243
  13. },
  14. {
  15. "Bandwidth": 4974,
  16. "Flow": 2984655,
  17. "Packets": 3309,
  18. "RX": 2911613,
  19. "ReceivedBandwidth": 4852,
  20. "TX": 73042,
  21. "TimeStamp": "2016-08-17T14:50:00Z",
  22. "TransportedBandwidth": 121
  23. },
  24. {
  25. "Bandwidth": 670474,
  26. "Flow": 402284862,
  27. "Packets": 1022979,
  28. "RX": 378446412,
  29. "ReceivedBandwidth": 630744,
  30. "TX": 23838450,
  31. "TimeStamp": "2016-08-17T15:40:00Z",
  32. "TransportedBandwidth": 39730
  33. },
  34. {
  35. "Bandwidth": 550788,
  36. "Flow": 330473138,
  37. "Packets": 841845,
  38. "RX": 310734504,
  39. "ReceivedBandwidth": 517890,
  40. "TX": 19738634,
  41. "TimeStamp": "2016-08-17T15:30:00Z",
  42. "TransportedBandwidth": 32897
  43. },
  44. {
  45. "Bandwidth": 641929,
  46. "Flow": 385157738,
  47. "Packets": 984581,
  48. "RX": 361935790,
  49. "ReceivedBandwidth": 603226,
  50. "TX": 23221948,
  51. "TimeStamp": "2016-08-17T16:10:00Z",
  52. "TransportedBandwidth": 38703
  53. },
  54. {
  55. "Bandwidth": 616357,
  56. "Flow": 369814238,
  57. "Packets": 940426,
  58. "RX": 347884682,
  59. "ReceivedBandwidth": 579807,
  60. "TX": 21929556,
  61. "TimeStamp": "2016-08-17T16:00:00Z",
  62. "TransportedBandwidth": 36549
  63. },
  64. {
  65. "Bandwidth": 482764,
  66. "Flow": 289658680,
  67. "Packets": 738351,
  68. "RX": 272298863,
  69. "ReceivedBandwidth": 453831,
  70. "TX": 17359817,
  71. "TimeStamp": "2016-08-17T15:50:00Z",
  72. "TransportedBandwidth": 28933
  73. },
  74. {
  75. "Bandwidth": 549978,
  76. "Flow": 329987258,
  77. "Packets": 849616,
  78. "RX": 309588891,
  79. "ReceivedBandwidth": 515981,
  80. "TX": 20398367,
  81. "TimeStamp": "2016-08-17T15:10:00Z",
  82. "TransportedBandwidth": 33997
  83. },
  84. {
  85. "Bandwidth": 974379,
  86. "Flow": 584627748,
  87. "Packets": 850916,
  88. "RX": 565902763,
  89. "ReceivedBandwidth": 943171,
  90. "TX": 18724985,
  91. "TimeStamp": "2016-08-17T15:00:00Z",
  92. "TransportedBandwidth": 31208
  93. },
  94. {
  95. "Bandwidth": 622442,
  96. "Flow": 373465592,
  97. "Packets": 952816,
  98. "RX": 350874730,
  99. "ReceivedBandwidth": 584791,
  100. "TX": 22590862,
  101. "TimeStamp": "2016-08-17T16:20:00Z",
  102. "TransportedBandwidth": 37651
  103. },
  104. {
  105. "Bandwidth": 687173,
  106. "Flow": 412303886,
  107. "Packets": 1050062,
  108. "RX": 387678827,
  109. "ReceivedBandwidth": 646131,
  110. "TX": 24625059,
  111. "TimeStamp": "2016-08-17T15:20:00Z",
  112. "TransportedBandwidth": 41041
  113. }
  114. ]
  115. },
  116. "RequestId": "A5A50001-4D2A-4E69-9418-075AD506D54C"
  117. }
本文导读目录