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

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


The following commit(s) were added to refs/heads/master by this push:
     new a74c614  Add health check query (#41)
a74c614 is described below

commit a74c614652a5279054335d449d1ec91bb14a53ea
Author: Gao Hongtao <hanahm...@gmail.com>
AuthorDate: Mon Jul 6 22:39:50 2020 +0800

    Add health check query (#41)
    
    Signed-off-by: Gao Hongtao <hanahm...@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!
+}

Reply via email to