简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
列出集群故障
你可以使用 `ListClusterFaults`用于列出集群上检测到的任何故障信息的方法。通过这种方法,您可以列出当前存在的故障以及已解决的故障。系统每 30 秒缓存一次故障。
参数
该方法有以下输入参数:
| 名称 | 描述 | 类型 | 默认值 | 必填项 |
|---|---|---|---|---|
最佳实践 |
包括由次优系统配置引发的故障。可能值:
|
布尔值 |
无 |
否 |
故障类型 |
确定返回的故障类型。可能值:
|
string |
所有 |
否 |
返回值
该方法返回以下值:
名称 |
描述 |
类型 |
故障 |
描述所请求的集群故障的对象。 |
请求示例
该方法的请求类似于以下示例:
{
"method": "ListClusterFaults",
"params": {
"faultTypes": "current",
"bestPractices": true
},
"id": 1
}
响应示例
此方法返回类似于以下示例的响应:
{
"id": 1,
"result": {
"faults": [
{
"blocksUpgrade": false,
"clusterFaultID": 3,
"code": "driveAvailable",
"data": null,
"date": "2024-04-03T22:22:56.660275Z",
"details": "Node ID 1 has 6 available drive(s).",
"driveID": 0,
"driveIDs": [],
"externalSource": "",
"networkInterface": "",
"nodeHardwareFaultID": 0,
"nodeID": 1,
"resolved": true,
"resolvedDate": "2024-04-03T22:24:54.598693Z",
"serviceID": 0,
"severity": "warning",
"type": "drive"
},
{
"clusterFaultID": 9,
"code": "disconnectedClusterPair",
"data": null,
"date": "2016-04-26T20:40:08.736597Z",
"details": "One of the clusters in a pair may have become misconfigured or disconnected. Remove the local pairing and retry pairing the clusters. Disconnected Cluster Pairs: []. Misconfigured Cluster Pairs: [3]",
"driveID": 0,
"driveIDs": [],
"nodeHardwareFaultID": 0,
"nodeID": 0,
"resolved": false,
"resolvedDate": "",
"serviceID": 0,
"severity": "warning",
"type": "cluster"
}
]
}
}
自版本以来的新版本
9.6