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