Zsolt Haraszti | a54f2ac | 2016-09-21 15:54:15 -0700 | [diff] [blame^] | 1 | // See README.txt for information and build instructions. |
| 2 | |
| 3 | syntax = "proto3"; |
| 4 | |
| 5 | package voltha; |
| 6 | |
| 7 | import "google/api/annotations.proto"; |
| 8 | |
| 9 | option java_package = "org.opencord.voltha"; |
| 10 | option java_outer_classname = "VolthaProtos"; |
| 11 | option csharp_namespace = "Opencord.Voltha.Voltha"; |
| 12 | |
| 13 | message NullMessage {} |
| 14 | |
| 15 | message 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 | |
| 29 | service 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 | |