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" => []
}
}