您可以使用 ListVolumeStatsByAccount 方法列出每个帐户的卷活动测量结果概要。其中的值为该帐户下所有卷的值之和。
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
includeVirtualVolumes | 默认情况下,响应中包含虚拟卷。要排除虚拟卷,请设置为 false。 | 布尔型 | true | 否 |
accounts | 要返回卷统计信息的帐户 ID 列表。如果省略,则会返回所有帐户的统计信息。 | 整型数组 | 无 | 否 |
此方法具有以下返回值:
名称 | 说明 | 类型 |
---|---|---|
volumeStats | 列出每个帐户的卷活动信息。 注:每个条目的 volumeID 成员均为 0,因为值表示该帐户拥有的所有卷的总和。
|
volumeStats 数组 |
此方法的请求类似于以下示例:
{ "method": "ListVolumeStatsByAccount", "params": {"accounts": [3]}, "id": 1 }
此方法返回类似于以下示例的响应:
{ "id": 1, "result": { "volumeStats": [ { "accountID": 3, "nonZeroBlocks": 155040175, "readBytes": 3156273328128, "readBytesLastSample": 0, "readOps": 770574543, "readOpsLastSample": 0, "samplePeriodMSec": 500, "timestamp": "2016-10-17T20:42:26.231661Z", "unalignedReads": 0, "unalignedWrites": 0, "volumeAccessGroups": [], "volumeID": 0, "volumeSize": 1127428915200, "writeBytes": 1051988406272, "writeBytesLastSample": 0, "writeOps": 256833107, "writeOpsLastSample": 0, "zeroBlocks": 120211025 } ] } }