mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Add a healthcheck route to SemanticAPI
This commit is contained in:
parent
27c233a70c
commit
29eb10a789
@ -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) {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user