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

ListClusterFaults

贡献者

您可以使用 ListClusterFaults 方法列出有关在集群上检测到的任何故障的信息。使用此方法,您可以列出当前故障以及已解决的故障。系统每 30 秒缓存一次故障。

Parameters

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

Name Description Type 默认值 Required

最佳实践

包括由次优系统配置触发的故障。可能值:

  • true

  • false

boolean

故障类型

确定返回的故障类型。可能值:

  • Current :列出未解决的活动故障。

  • resolved :列出先前检测到并已解决的故障。

  • all :列出当前故障和已解决的故障。您可以在故障对象的 " re已解决 " 成员中查看故障状态。

string

全部

返回值

此方法具有以下返回值:

Name

Description

Type

故障

描述请求的集群故障的对象。

请求示例

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

{
  "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