调用DescribeMultiContainerGroupMetric同时查询多个容器组的监控信息。
接口说明
- 目前只返回每个ECI最新的一条监控信息。
- 目前仅支持创建时间晚于北京时间2019年4月3日15:00的ECI支持监控数据的查询。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
ContainerGroupIds | String | 是 | ['eci-xxx', 'eci-xxx'] |
容器组实例ID。 |
RegionId | String | 是 | cn-hangzhou |
实例所属的地域ID。 |
Action | String | 否 | DescribeMultiContainerGroupMetric |
系统规定参数,取值:DescribeMultiContainerGroupMetric。 |
ResourceGroupId | String | 否 | rg-xxx |
资源组ID。 |
MetricType | String | 否 | summary |
监控信息类型。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
MonitorDatas | String |
实例的监控数据集合。 |
|
ContainerGroupId | String | eci-xxx |
容器组ID。 |
Records | Array |
监控信息详情。 |
|
CPU |
CPU信息。 |
||
Limit | Long | 1024 |
CPU上限。 |
Load | Long | 0 |
负载情况。 |
UsageCoreNanoSeconds | Long | 40876694 |
节点上所有CPU历史使用总量。 |
UsageNanoCores | Long | 0 |
节点上所有CPU在采样窗口内的使用量。 |
Containers | Array |
容器列表信息。 |
|
CPU |
CPU信息。 |
||
Limit | Long | 1024 |
CPU上限。 |
Load | Long | 0 |
负载情况。 |
UsageCoreNanoSeconds | Long | 40876694 |
节点上所有CPU历史使用总量。 |
UsageNanoCores | Long | 0 |
节点上所有CPU在采样窗口内的使用量。 |
Memory |
内存信息,单位:Byte。 |
||
AvailableBytes | Long | 4285091840 |
可用内存。 |
Cache | Long | 9289728 |
缓存。 |
Rss | Long | 9289728 |
实际使用物理内存。 |
UsageBytes | Long | 9289728 |
已使用内存。 |
WorkingSet | Long | 9289728 |
目前消耗的物理内存。 |
Name | String | u1 |
容器名称。 |
Memory |
内存信息。 |
||
AvailableBytes | Long | 4285091840 |
可用内存。 |
Cache | Long | 9289728 |
缓存。 |
Rss | Long | 9289728 |
实际使用物理内存。 |
UsageBytes | Long | 9289728 |
已使用内存。 |
WorkingSet | Long | 9289728 |
目前消耗的物理内存。 |
Network |
网络状态信息 |
||
Interfaces | Array |
网卡信息 |
|
Name | String | eth0 |
网卡名称 |
RxBytes | Long | 0 |
接收字节数 |
RxErrors | Long | 0 |
接收错误数 |
TxBytes | Long | 426 |
发送字节数 |
TxErrors | Long | 0 |
发送错误数 |
Timestamp | String | 2019-03-29T10:38:50.734+08:00 |
每条监控数据对应的统计的时间 |
RequestId | String | D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC |
请求ID,唯一标识。 |
示例
请求示例
http(s)://eci.aliyuncs.com/?Action=DescribeMultiContainerGroupMetric
&ContainerGroupIds=[“eci-bp1dqpye03ke5s6p2ijc”, “eci-bp1dqpye03ke5u5q6kih”]
&RegionId=cn-hangzhou
&<公共请求参数>
正常返回示例
XML
格式
<DescribeMultiContainerGroupMetricResponse>
<MonitorDatas>
<ContainerGroupId>eci-bp13hu581cgkmwd377gc</ContainerGroupId>
<Records>
<Memory>
<Rss>0</Rss>
<WorkingSet>3284992</WorkingSet>
<AvailableBytes>2144198656</AvailableBytes>
<Cache>0</Cache>
<UsageBytes>3284992</UsageBytes>
</Memory>
<Network>
<Interfaces>
<Name>eth0</Name>
<TxBytes>53891967</TxBytes>
<RxErrors>0</RxErrors>
<TxErrors>0</TxErrors>
<RxBytes>17309162</RxBytes>
</Interfaces>
</Network>
<CPU>
<Load>0</Load>
<UsageNanoCores>0</UsageNanoCores>
<UsageCoreNanoSeconds>3842685323</UsageCoreNanoSeconds>
<Limit>0</Limit>
</CPU>
<Timestamp/>
</Records>
</MonitorDatas>
<MonitorDatas>
<ContainerGroupId>eci-bp13hu581cgkmwd377gd</ContainerGroupId>
<Records>
<Memory>
<Rss>77824</Rss>
<WorkingSet>3280896</WorkingSet>
<AvailableBytes>2144202752</AvailableBytes>
<Cache>0</Cache>
<UsageBytes>3280896</UsageBytes>
</Memory>
<Network>
<Interfaces>
<Name>eth0</Name>
<TxBytes>53873098</TxBytes>
<RxErrors>0</RxErrors>
<TxErrors>0</TxErrors>
<RxBytes>17295698</RxBytes>
</Interfaces>
</Network>
<CPU>
<Load>0</Load>
<UsageNanoCores>0</UsageNanoCores>
<UsageCoreNanoSeconds>3859842001</UsageCoreNanoSeconds>
<Limit>0</Limit>
</CPU>
<Timestamp/>
</Records>
</MonitorDatas>
<RequestId>4E0E793D-3B35-40C9-9C45-D7FCB4C62359</RequestId>
</DescribeMultiContainerGroupMetricResponse>
JSON
格式
{
"MonitorDatas": [
{
"ContainerGroupId": "eci-bp13hu581cgkmwd377gc",
"Records": [
{
"Containers": [],
"Memory": {
"Rss": 0,
"WorkingSet": 3284992,
"AvailableBytes": 2144198656,
"Cache": 0,
"UsageBytes": 3284992
},
"Network": {
"Interfaces": [
{
"Name": "eth0",
"TxBytes": 53891967,
"RxErrors": 0,
"TxErrors": 0,
"RxBytes": 17309162
}
]
},
"CPU": {
"Load": 0,
"UsageNanoCores": 0,
"UsageCoreNanoSeconds": 3842685323,
"Limit": 0
},
"Timestamp": ""
}
]
},
{
"ContainerGroupId": "eci-bp13hu581cgkmwd377gd",
"Records": [
{
"Containers": [],
"Memory": {
"Rss": 77824,
"WorkingSet": 3280896,
"AvailableBytes": 2144202752,
"Cache": 0,
"UsageBytes": 3280896
},
"Network": {
"Interfaces": [
{
"Name": "eth0",
"TxBytes": 53873098,
"RxErrors": 0,
"TxErrors": 0,
"RxBytes": 17295698
}
]
},
"CPU": {
"Load": 0,
"UsageNanoCores": 0,
"UsageCoreNanoSeconds": 3859842001,
"Limit": 0
},
"Timestamp": ""
}
]
}
],
"RequestId": "4E0E793D-3B35-40C9-9C45-D7FCB4C62359"
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交