summaryrefslogtreecommitdiff
path: root/event.proto
blob: 4f2e13aa12424bd38656d01fb0517b648f37361e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
syntax = "proto3";

package gus;

import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp

message Event {
        string                      hostname      = 1;  // the hostname of the client
        string                      address       = 2;  // the IP address from the client
        string                      where         = 3;  // where gus was sending the client traffic
        google.protobuf.Timestamp   ctime         = 4;  // when the socket opened
        google.protobuf.Timestamp   etime         = 5;  // when the socket ended
        int64                       localPort     = 6;  // the port gus was listening on
}

message Events {                                        // `autogenpb:marshal` `autogenpb:gui` `autogenpb:nomutex`
        string                      uuid          = 1;  // `autogenpb:uuid:4e91f9e6-f545-4c72-bec4-ab951276da1d`
        string                      version       = 2;  // `autogenpb:version:v0.0.1`
        repeated Event              events        = 3;
}