You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2020/07/06 14:15:19 UTC

[skywalking-query-protocol] 01/01: Add health check query

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch health-check
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git

commit 2cba92febd169970ffde88c765cffd5aaf73e7f9
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Mon Jul 6 22:14:30 2020 +0800

    Add health check query
    
    Signed-off-by: Gao Hongtao <ha...@gmail.com>
---
 common.graphqls | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/common.graphqls b/common.graphqls
index 2897449..ce6ee5d 100644
--- a/common.graphqls
+++ b/common.graphqls
@@ -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!
+}