Skip to main content
Element Software
12.5 and 12.7
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

ListVolumeStatsByAccount

贡献者

您可以使用 ListVolumeStatsByAccount 方法列出每个帐户的卷活动测量结果概要。这些值将从帐户拥有的所有卷中求和。

Parameters

此方法具有以下输入参数:

Name Description Type 默认值 Required

包括 VirtualVolumes

默认情况下,响应中包含虚拟卷。要排除虚拟卷,请设置为 false 。

boolean

true

—帐户

要返回卷统计信息的帐户 ID 列表。如果省略此参数,则会返回所有帐户的统计信息。

整型数组

返回值

此方法具有以下返回值:

Name

Description

Type

volumeStats

列出每个帐户的卷活动信息。 * 注: * 每个条目的卷 ID 成员为 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
      }
    ]
  }
}

自版本以来的新增功能

9.6