Newer
Older
//Example of topology
syntax = "proto3";
package monitoring;
import "context.proto";
service MonitoringService {
rpc IncludeKpi (Kpi) returns (context.Empty) {}
rpc MonitorKpi ( KpiDevice ) returns (context.Empty) {}
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
rpc GetStream_kpi ( KpiId ) returns (stream Kpi) {}
rpc GetInstantKpi ( KpiId ) returns ( Kpi) {}
}
message Kpi {
KpiId kpi_id = 1;
string timestamp = 2;
string kpiDescription = 3;
KpiValue kpi_value = 4;
}
message KpiId {
context.Uuid kpi_id = 1;
}
message KpiDevice {
KpiId kpi_id = 1;
context.DeviceId device_id = 2;
}
message KpiList {
repeated Kpi kpiList = 1;
}
message KpiValue {
oneof value {
uint32 intVal = 1;
string stringVal = 2;
bool boolVal = 3;
}
}