25.3.2. 使用管理 CLI 示例进行健康检查

可以使用管理 CLI 检查健康检查。

  • :check 属性演示了获取服务器的当前运行状况(存活度和 就绪度探测 )。
/subsystem=microprofile-health-smallrye:check
{
    "outcome" => "success",
    "result" => {
        "outcome" => "UP",
        "checks" => []
    }
}
  • check -live 属性仅获取 存活度 探测的健康数据。
/subsystem=microprofile-health-smallrye:check-live
{
    "outcome" => "success",
    "result" => {
        "outcome" => "UP",
        "checks" => []
    }
}
  • check-ready 属性仅获取 就绪度探测 的健康数据。
/subsystem=microprofile-health-smallrye:check-ready
{
    "outcome" => "success",
    "result" => {
        "outcome" => "UP",
        "checks" => []
    }
}