|
|
|
@ -9,20 +9,6 @@ service monitoring {
|
|
|
|
|
|
|
|
|
|
message ReactorStatusResponse {
|
|
|
|
|
int32 id = 1;
|
|
|
|
|
repeated DeviceResponse deviceresponse = 2;
|
|
|
|
|
repeated SensorResponse sensorresponse = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message DeviceResponse {
|
|
|
|
|
int32 id = 1;
|
|
|
|
|
string name = 2;
|
|
|
|
|
map<string,string> updates = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SensorResponse {
|
|
|
|
|
int32 id = 1;
|
|
|
|
|
string name = 2;
|
|
|
|
|
int32 sampleRate = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ReactorStatusPing {
|
|
|
|
@ -32,22 +18,22 @@ message ReactorStatusPing {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum Status {
|
|
|
|
|
DEAD = 0;
|
|
|
|
|
ALIVE = 1;
|
|
|
|
|
UNKOWN = 2;
|
|
|
|
|
DEAD = 0; // connected but not responding
|
|
|
|
|
ALIVE = 1; // actively responding
|
|
|
|
|
UNKOWN = 2; // Disconnected
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Sensor {
|
|
|
|
|
int32 addr = 1;
|
|
|
|
|
string name = 2;
|
|
|
|
|
int32 addr = 1; // i2c addr
|
|
|
|
|
string name = 2; // use readable name, changable
|
|
|
|
|
Status status = 3;
|
|
|
|
|
int32 sampleRate = 4;
|
|
|
|
|
string data = 5;
|
|
|
|
|
int32 sampleRate = 4; // in seconds
|
|
|
|
|
string data = 5; // open for any sort of format
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Device {
|
|
|
|
|
int32 addr = 1;
|
|
|
|
|
string name = 2;
|
|
|
|
|
int32 addr = 1; // i2c addr used for ID
|
|
|
|
|
string name = 2; // user readable name, changable
|
|
|
|
|
Status status = 3;
|
|
|
|
|
string data = 4;
|
|
|
|
|
string data = 4; // any format
|
|
|
|
|
}
|
|
|
|
|