blob: 907b683108700624639c00d25ccffbf9a5120535 [file] [log] [blame]
khenaidooabad44c2018-08-03 16:58:35 -04001syntax = "proto3";
2
William Kurkiandaa6bb22019-03-07 12:26:28 -05003option go_package = "github.com/opencord/voltha-protos/go/voltha";
khenaidooabad44c2018-08-03 16:58:35 -04004
5package voltha;
6
7import "google/api/annotations.proto";
8import "google/protobuf/empty.proto";
9import "meta.proto";
10
11// Encode health status of a Voltha instance
12message HealthStatus {
13
14 // Health states
15 enum HealthState {
16 HEALTHY = 0; // The instance is healthy
17 OVERLOADED = 1; // The instance is overloaded, decrease query rate
18 DYING = 2; // The instance is in a critical condition, do not use it
19 }
20
21 // Current state of health of this Voltha instance
22 HealthState state = 1 [(access) = READ_ONLY];
23}
24
25// Health related services
26service HealthService {
27
28 // Return current health status of a Voltha instance
29 rpc GetHealthStatus(google.protobuf.Empty) returns (HealthStatus) {
30 option (google.api.http) = {
31 get: "/health"
32 };
33 }
34
35}
36