未验证 提交 a74c6146 编写于 作者: G Gao Hongtao 提交者: GitHub

Add health check query (#41)

Signed-off-by: NGao Hongtao <hanahmily@gmail.com>
上级 bea847b9
......@@ -100,3 +100,16 @@ enum DetectPoint {
SERVER
PROXY
}
type HealthStatus {
# 0 means healthy, more than 0 means unhealthy
# and less than 0 means oap doesn't startup.
score: Int!
# some details about the score value.
details: String
}
extend type Query {
# Query Health Checker module for the status of OAP server
checkHealth(): HealthStatus!
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册