github.com/Axway/agent-sdk@v1.1.101/proto/watch.proto (about) 1 syntax = "proto3"; 2 3 package central.events.v1; 4 5 import "apicentral.proto"; 6 7 option go_package = "pkg/watchmanager/proto"; 8 9 service watch { 10 rpc subscribe(stream Request) returns (stream Event) { 11 } 12 } 13 14 message Request { 15 string selfLink = 1; 16 string token = 2; 17 } 18 19 message Event { 20 string id = 1; 21 string time = 2; 22 string version = 3; 23 string product = 4; 24 string correlationId = 5; 25 Organization organization = 6; 26 enum Type { 27 CREATED = 0; 28 UPDATED = 1; 29 DELETED = 2; 30 SUBRESOURCEUPDATED = 3; 31 } 32 Type type = 7; 33 34 .central.events.v1.datamodel.ResourceInstance payload = 8; 35 36 EventMeta metadata = 9; 37 } 38 39 message EventMeta { 40 string watchTopicID = 1; 41 string watchTopicSelfLink = 2; 42 int64 sequenceID = 3; 43 string subresource = 4; 44 } 45 46 message Organization { 47 string id = 1; 48 }