syntax = "proto3";
package emerwen.shared;
message Target {
uint32 id = 1;
string addr = 2;
uint32 interval = 3;
oneof method {
MethodPing ping = 4;
MethodGET get = 5;
}
message MethodPing {}
message MethodGET {
repeated uint32 ok_codes = 1;
}
}
enum TargetState {
DOWN = 0;
UP = 1;
UNKNOWN = 2;
}