-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathevents.proto
34 lines (28 loc) · 898 Bytes
/
events.proto
1
2
3
4
5
6
7
8
9
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
syntax = "proto3";
package events;
option go_package = "github.com/cubex/proto-go/events";
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
message EventRequest {
google.protobuf.Timestamp timestamp = 1;
string session_id = 2;
string device_id = 3;
string fingerprint_id = 4;
string user_id = 5;
string source = 6; //domain / global-app-id
string ip = 7;
string event_type_id = 8;
map<string, string> strings = 9;
map<string, google.protobuf.Timestamp> timestamps = 10;
map<string, google.protobuf.Duration> durations = 11;
map<string, bool> bools = 12;
map<string, float> floats = 13;
map<string, int64> integers = 14;
map<string, string> meta = 15;
}
message EventSubmittedResponse {
string event_id = 1;
}
service Events {
rpc FireEvent (EventRequest) returns (EventSubmittedResponse);
}