调用DescribeEipMonitorData接口查看弹性公网IP(Elastic IP Address,简称EIP)的监控信息,最多查询31天内的数据,单次最多查询400个流量点的数据。
接口说明
为了提供更好的获取监控数据接口体验,建议您使用云监控(CloudMonitor)提供的统一接口 DescribeMetricList 查询 EIP 相关数据。更多信息,请参见 DescribeMetricList 和弹性公网 IP 相关数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:DescribeEipMonitorData |
get |
*Address
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
EIP 所属地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| AllocationId |
string |
是 |
EIP 的实例 ID。 |
eip-2zeerraiwb7uj6idcfv**** |
| StartTime |
string |
是 |
获取数据的起始时间。使用 UTC 时间。按照 ISO8601 标准,格式为 如果不是整分,则自动取下一分钟为起始时间点。 |
2020-01-05T01:05:05Z |
| EndTime |
string |
是 |
获取数据的结束时间。使用 UTC 时间。按照 ISO8601 标准,格式为 如果不是整分,则自动取下一分钟为结束时间点。 |
2020-01-05T03:05:10Z |
| Period |
integer |
否 |
每条监控数据的时间长度。单位:秒。取值:60(默认值) 、300 、 900 或 3600。
|
60 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回信息列表。 |
||
| RequestId |
string |
请求 ID。 |
C8B26B44-0189-443E-9816-D951F59623A9 |
| EipMonitorDatas |
object |
||
| EipMonitorData |
array<object> |
EIP 监控数据的详细信息。 |
|
|
object |
EIP 监控数据的详细信息。 |
||
| EipTX |
integer |
流出的流量。单位:Byte。 |
343 |
| EipPackets |
integer |
包数量。 |
3434 |
| EipBandwidth |
integer |
平均带宽值,该值等于 EipFlow/Period。单位:Byte/s。 其中 Period 默认值为 60,单位为秒。 |
10 |
| TimeStamp |
string |
查询监控信息的时间戳。ISO8601 格式,如 |
2020-01-21T09:50:23Z |
| EipFlow |
integer |
流入和流出的流量总和。单位:Byte。 |
465 |
| EipRX |
integer |
流入的流量。单位:Byte。 |
122 |
示例
正常返回示例
JSON格式
{
"RequestId": "C8B26B44-0189-443E-9816-D951F59623A9",
"EipMonitorDatas": {
"EipMonitorData": [
{
"EipTX": 343,
"EipPackets": 3434,
"EipBandwidth": 10,
"TimeStamp": "2020-01-21T09:50:23Z",
"EipFlow": 465,
"EipRX": 122
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.TooMany | monitor parameter too many data required. | 存在多个无效入参。 |
| 400 | InvalidStartTime.Malformed | The specified parameter "StartTime" is not valid. | |
| 400 | InvalidEndTime.Malformed | The specified parameter "EndTime" is not valid. | |
| 400 | InvalidPeriod.ValueNotSupported | The specified parameter "Period" is not valid. | |
| 400 | InvalidStartTime.TooEarly | The specified parameter "StartTime" is too early. | |
| 400 | InvalidAllocationId.NotFound | Specified allocation id is not found. | |
| 400 | OperationDenied.TooManyDataQueried | Specified operation is denied as too many data to return. | |
| 404 | InvalidIpInstanceId.NotFound | The specified Eip InstanceId does not exist in our records. | |
| 404 | InvalidInstanceId.NotFound | The InstanceId provided does not exist in our records. | |
| 404 | Forbidden.RegionNotFound | Specified region is not found during access authentication. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。