...
1syntax = "proto3";
2
3package nflogpb;
4
5import "google/protobuf/timestamp.proto";
6import "gogoproto/gogo.proto";
7
8option (gogoproto.marshaler_all) = true;
9option (gogoproto.sizer_all) = true;
10option (gogoproto.unmarshaler_all) = true;
11option (gogoproto.goproto_getters_all) = false;
12
13message Receiver {
14 // Configured name of the receiver group.
15 string group_name = 1;
16 // Name of the integration of the receiver.
17 string integration = 2;
18 // Index of the receiver with respect to the integration.
19 // Every integration in a group may have 0..N configurations.
20 uint32 idx = 3;
21}
22
23// Entry holds information about a successful notification
24// sent to a receiver.
25message Entry {
26 // The key identifying the dispatching group.
27 bytes group_key = 1;
28 // The receiver that was notified.
29 Receiver receiver = 2;
30 // Hash over the state of the group at notification time.
31 // Deprecated in favor of FiringAlerts field, but kept for compatibility.
32 bytes group_hash = 3;
33 // Whether the notification was about a resolved alert.
34 // Deprecated in favor of ResolvedAlerts field, but kept for compatibility.
35 bool resolved = 4;
36 // Timestamp of the succeeding notification.
37 google.protobuf.Timestamp timestamp = 5 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
38 // FiringAlerts list of hashes of firing alerts at the last notification time.
39 repeated uint64 firing_alerts = 6;
40 // ResolvedAlerts list of hashes of resolved alerts at the last notification time.
41 repeated uint64 resolved_alerts = 7;
42}
43
44// MeshEntry is a wrapper message to communicate a notify log
45// entry through a mesh network.
46message MeshEntry {
47 // The original raw notify log entry.
48 Entry entry = 1;
49 // A timestamp indicating when the mesh peer should evict
50 // the log entry from its state.
51 google.protobuf.Timestamp expires_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
52}
View as plain text