blob: a0d65db48d6842ae68355d1491496ff2d2546f4d [file] [log] [blame]
Zsolt Harasztia54f2ac2016-09-21 15:54:15 -07001// See README.txt for information and build instructions.
2
3syntax = "proto3";
4
5package voltha;
6
7import "google/api/annotations.proto";
8
9option java_package = "org.opencord.voltha";
10option java_outer_classname = "VolthaProtos";
11option csharp_namespace = "Opencord.Voltha.Voltha";
12
13message NullMessage {}
14
15message HealthStatus {
16
17 // Health states
18 enum HealthState {
19 HEALTHY = 0;
20 OVERLOADED = 1;
21 DYING = 2;
22 }
23
24 // Current state of health of this Voltha instance
25 HealthState state = 1;
26
27}
28
29service HealthService {
30
31 // Return current health status of a Voltha instance
32 rpc GetHealthStatus(NullMessage) returns (HealthStatus) {
33 option (google.api.http) = {
34 get: "/health"
35 body: '*'
36 };
37 }
38
39}
40