From 29eb10a789b814a116ab82efd2206dad5c771e8e Mon Sep 17 00:00:00 2001 From: joshvera Date: Mon, 21 May 2018 14:25:42 -0400 Subject: [PATCH] Add a healthcheck route to SemanticAPI --- app/semantic.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/semantic.proto b/app/semantic.proto index e0475321a..605c78a21 100644 --- a/app/semantic.proto +++ b/app/semantic.proto @@ -1,7 +1,21 @@ syntax = "proto3"; package semantic; +message HealthCheckRequest { + string service = 1; +} + +message HealthCheckResponse { + enum ServingStatus { + UNKNOWN = 0; + SERVING = 1; + NOT_SERVING = 2; + } + ServingStatus status = 1; +} + service SemanticAPI { + rpc HealthCheck(HealthCheckRequest) returns (HealthCheckResponse); rpc FetchSummaries (SummariesRequest) returns (SummariesResponse) {} rpc ParseBlobs (ParseRequest) returns (ParseResponse) {} }