跳转到主要内容
基础设施相关接口/OTA 版本与策略

查询预检结果列表

列表预检结果。

GET/api/v1/ota/plans/{planId}/preflight/history

操作 ID

ListPreflightResults

起始版本

1.0.0

执行模式

同步

认证信息

需要认证

认证信息

调用该 API 时需要在请求头中携带以下认证信息。

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

application/json

路径参数

  • planId
    String必填

    计划ID。

查询参数

  • pageSize
    Integer

    返回的预检结果数量上限。

    示例: 0

    {"format":"int32"}

响应状态

200 OK

请求成功。

Content-Type: application/json

响应体根类型: object

  • items
    List

    条目列表。

    • planId
      String

      计划ID。

      示例: plan-a1b2c3d4-e5f6-7890-abcd-ef1234567890

    • mode
      String

      已使用预检运行。

      示例: strict

    • totalAgents
      Integer

      代理总数。

      示例: 20

      {"format":"int32"}

    • healthyAgents
      Integer

      健康代理。

      示例: 19

      {"format":"int32"}

    • unhealthyAgents
      Integer

      不健康代理。

      示例: 1

      {"format":"int32"}

    • healthyPct
      Double

      健康百分比。

      示例: 95

      {"format":"double"}

    • decision
      String

      根据配置的最低健康比例作出的门禁决定。

      示例: proceed

    • excludedAgentIds
      List

      排除代理ID。

    • agentResults
      List

      代理结果。

      • agentId
        String

        代理ID。

        示例: lca-node01.example.com

      • agentName
        String

        显示名称代理节点。

        示例: node01

      • healthy
        Boolean

        代理已通过预检检查。

        示例: true

      • checkResults
        LinkedHashMap

        预检检查结果条目。

      • failReasons
        List

        失败原因。

    • checkedAt
      String

      检查时间。

      示例: 2026-01-15T08:00:00Z

      {"format":"date-time"}

    • durationMs
      String

      时长预检运行时间,单位为毫秒。

      示例: 4800

      {"format":"int64"}

  • total
    Integer

    返回结果总数。

    示例: 5

    {"format":"int32"}

  • limit
    Integer

    每页返回的条数上限。

    示例: 10

    {"format":"int32"}

  • offset
    Integer

    查询起始偏移量。

    示例: 20

    {"format":"int32"}