Files
grpccanary/lib/grpc/modular/proto/alerts.proto
T

22 lines
391 B
Protocol Buffer

syntax = "proto3";
option go_package = "./protoapi/;protoapi";
import "common.proto";
service AlertService {
rpc SubscribeAlerts (AlertSubscription) returns (stream AlertMessage);
}
message AlertSubscription {
string ClientId = 1;
string Topic = 2;
}
message AlertMessage {
string AlertId = 1;
string DeviceId = 2;
string Message = 3;
int64 Timestamp = 4;
}