您可以使用 GetDriveStats 方法获取单个驱动器的活动测量结果概要。值从驱动器添加到集群中之后开始累计。部分值特定于块驱动器。运行此方法时,将返回块或元数据驱动器类型的统计数据。
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
driveID | 请求的驱动器的 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