Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'proto/health.proto')
-rw-r--r--proto/health.proto37
1 files changed, 37 insertions, 0 deletions
diff --git a/proto/health.proto b/proto/health.proto
new file mode 100644
index 000000000..16a063ee8
--- /dev/null
+++ b/proto/health.proto
@@ -0,0 +1,37 @@
+syntax = "proto3";
+
+package gitaly;
+
+option go_package = "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb";
+
+import "lint.proto";
+import "shared.proto";
+
+service Health {
+ rpc Check(HealthCheckRequest) returns (HealthCheckResponse){
+ option (op_type) = {
+ op: ACCESSOR
+ scope_level: SERVER
+ };
+ };
+
+ rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse){
+ option (op_type) = {
+ op: ACCESSOR
+ scope_level: SERVER
+ };
+ };
+}
+
+message HealthCheckRequest {
+ string service = 1;
+}
+
+message HealthCheckResponse {
+ enum ServingStatus {
+ UNKNOWN = 0;
+ SERVING = 1;
+ NOT_SERVING = 2;
+ }
+ ServingStatus status = 1;
+}