github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/alert/alert.proto (about) 1 syntax = "proto3"; 2 3 package alert; 4 5 option go_package = "github.com/tickoalcantara12/micro/v3/proto/alert;alert"; 6 7 service Alert { 8 // ReportEvent does event ingestions. 9 rpc ReportEvent(ReportEventRequest) returns (ReportEventResponse) {} 10 } 11 12 13 // Event is inspired by Google Analytics events 14 // https://developers.google.com/analytics/devguides/collection/analyticsjs/events 15 message Event { 16 // id is not required for inserts 17 string id = 1; 18 string category = 2; 19 string action = 3; 20 string label = 4; 21 uint64 value = 5; 22 map<string,string> metadata = 6; 23 } 24 25 message ReportEventRequest { 26 Event event = 1; 27 } 28 29 message ReportEventResponse {}