本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
GetDriveStats
您可以使用「GetDriveStats」方法來取得單一磁碟機的高層活動量測結果。這些值是從新增磁碟機到叢集的累積值。有些值是區塊磁碟機的特定值。執行此方法時、會傳回區塊或中繼資料磁碟機類型的統計資料。
參數
此方法具有下列輸入參數:
| 名稱 | 說明 | 類型 | 預設值 | 必要 |
|---|---|---|---|---|
DriveID |
申請的磁碟機ID。 |
整數 |
無 |
是的 |
傳回值
此方法具有下列傳回值:
| 名稱 | 說明 | 類型 |
|---|---|---|
磁碟統計資料 |
指定DriveID的磁碟機活動資訊。 |
申請範例
此方法的要求類似於下列範例:
{
"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
}
}
}
回應範例(Volume中繼資料磁碟機)
此方法會傳回類似下列Volume中繼資料磁碟機範例的回應:
{
"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