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

GetDriveStats

贡献者

您可以使用 GetDriveStats 方法获取单个驱动器的高级别活动测量结果。值是在将驱动器添加到集群中后累积的。某些值特定于块驱动器。运行此方法时,系统将返回块或元数据驱动器类型的统计数据。

参数

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

Name Description Type 默认值 Required

驱动器 ID

请求的驱动器的 ID 。

整型

是的。

返回值

此方法具有以下返回值:

Name Description Type

driveStats

指定驱动器 ID 的驱动器活动信息。

请求示例

此方法的请求类似于以下示例:

{
   "method": "GetDriveStats",
   "params": {
     "driveID": 3
   },
   "id" : 1
}

响应示例(块驱动器)

此方法将返回类似于以下块驱动器示例的响应:

{
  "id": 1,
  "result": {
    "driveStats": {
      "driveID": 10,
      "failedDieCount": 0,
      "lifeRemainingPercent": 99,
      "lifetimeReadBytes": 26471661830144,
      "lifetimeWriteBytes": 13863852441600,
      "powerOnHours": 33684,
      "readBytes": 10600432105,
      "readOps": 5101025,
      "reallocatedSectors": 0,
      "reserveCapacityPercent": 100,
      "timestamp": "2016-10-17T20:23:45.456834Z",
      "totalCapacity": 300069052416,
      "usedCapacity": 6112226545,
      "usedMemory": 114503680,
      "writeBytes": 53559500896,
      "writeOps": 25773919
    }
  }
}

响应示例(卷元数据驱动器)

此方法将返回类似于以下卷元数据驱动器示例的响应:

{
  "id": 1,
  "result": {
    "driveStats": {
      "activeSessions": 8,
      "driveID": 12,
      "failedDieCount": 0,
      "lifeRemainingPercent": 100,
      "lifetimeReadBytes": 2308544921600,
      "lifetimeWriteBytes": 1120986464256,
      "powerOnHours": 16316,
      "readBytes": 1060152152064,
      "readOps": 258826209,
      "reallocatedSectors": 0,
      "reserveCapacityPercent": 100,
      "timestamp": "2016-10-17T20:34:52.456130Z",
      "totalCapacity": 134994670387,
      "usedCapacity": null,
      "usedMemory": 22173577216,
      "writeBytes": 353346510848,
      "writeOps": 86266238
    }
  }
}

自版本以来的新增功能

9.6

了解更多信息