1 option java_package = "com.aphyr.riemann";
2 option java_outer_classname = "Proto";
4 message State {
5 optional int64 time = 1;
6 optional string state = 2;
7 optional string service = 3;
8 optional string host = 4;
9 optional string description = 5;
10 optional bool once = 6;
11 repeated string tags = 7;
12 optional float ttl = 8;
13 }
15 message Event {
16 optional int64 time = 1;
17 optional string state = 2;
18 optional string service = 3;
19 optional string host = 4;
20 optional string description = 5;
21 repeated string tags = 7;
22 optional float ttl = 8;
23 repeated Attribute attributes = 9;
25 optional sint64 metric_sint64 = 13;
26 optional double metric_d = 14;
27 optional float metric_f = 15;
28 }
30 message Query {
31 optional string string = 1;
32 }
34 message Msg {
35 optional bool ok = 2;
36 optional string error = 3;
37 repeated State states = 4;
38 optional Query query = 5;
39 repeated Event events = 6;
40 }
42 message Attribute {
43 required string key = 1;
44 optional string value = 2;
45 }