blob: 22346ace17d62e53d0c723ff3a313478ca71b923 [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001syntax = "proto3";
2
Matteo Scandolob3c08ae2020-10-14 13:15:43 -07003option go_package = "github.com/opencord/voltha-protos/v4/go/voltha";
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03004option java_package = "org.opencord.voltha";
Zack Williams52209662019-02-07 10:15:31 -07005
6package voltha;
7
8import "google/api/annotations.proto";
9import "google/protobuf/empty.proto";
10import "voltha_protos/meta.proto";
11
12// Encode health status of a Voltha instance
13message HealthStatus {
14
15 // Health states
16 enum HealthState {
17 HEALTHY = 0; // The instance is healthy
18 OVERLOADED = 1; // The instance is overloaded, decrease query rate
19 DYING = 2; // The instance is in a critical condition, do not use it
20 }
21
22 // Current state of health of this Voltha instance
23 HealthState state = 1 [(access) = READ_ONLY];
24}
25
26// Health related services
27service HealthService {
28
29 // Return current health status of a Voltha instance
30 rpc GetHealthStatus(google.protobuf.Empty) returns (HealthStatus) {
31 option (google.api.http) = {
32 get: "/health"
33 };
34 }
35
36}
37