blob: e79c30a1c53be99efb60f248a31c74c1d1f53208 [file] [log] [blame]
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -05001
2module ietf-health {
3
4
5 namespace "urn:opencord:params:xml:ns:voltha:ietf-health";
6 prefix health;
7
8 import ietf-empty { prefix empty ; }
9
10 organization "CORD";
11 contact
12 " Any name";
13
14 description
15 "";
16
17 revision "2016-11-15" {
18 description "Initial revision.";
19 reference "reference";
20 }
21
22
23 grouping HealthStatus {
24 description
25 "Encode health status of a Voltha instance";
26 leaf state {
27 type HealthState;
28 description
29 "Current state of health of this Voltha instance";
30 }
31
32 typedef HealthState {
33 type enumeration {
34 enum HEALTHY {
35 description "";
36 }
37 enum OVERLOADED {
38 description "";
39 }
40 enum DYING {
41 description "";
42 }
43 }
44 description
45 "Health states";
46 }
47
48 }
49
50 /* Health related services" */
51 rpc HealthService-GetHealthStatus {
52 description
53 "Return current health status of a Voltha instance";
54 input {
55 uses empty:Empty;
56
57 }
58 output {
59 uses HealthStatus;
60
61 }
62 }
63
64
65}