You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
syntax = "proto3";
|
|
|
|
import "google/protobuf/struct.proto";
|
|
|
|
option go_package = "whiteboxsystems.nl/okapi";
|
|
|
|
|
|
|
|
message Event {
|
|
|
|
uint64 timestamp = 1;
|
|
|
|
string type = 2;
|
|
|
|
string serviceId = 3;
|
|
|
|
string patientId = 4;
|
|
|
|
google.protobuf.Struct payload = 5;
|
|
|
|
}
|
|
|
|
message Query {
|
|
|
|
uint64 start = 1;
|
|
|
|
uint64 end = 2;
|
|
|
|
string type = 3;
|
|
|
|
string serviceId = 4;
|
|
|
|
string patientId = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetEventsRequest {
|
|
|
|
int32 page = 2;
|
|
|
|
int32 perPage = 3;
|
|
|
|
repeated Query query = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetEventsResponse {
|
|
|
|
int32 page = 2;
|
|
|
|
int32 perPage = 3;
|
|
|
|
repeated Event events = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetEventsStreamRequest {
|
|
|
|
repeated Query query = 2;
|
|
|
|
}
|