api/proto/audit/event_entity.proto

53 lines
1 KiB
Protocol Buffer
Raw Normal View History

2021-02-13 17:20:57 +00:00
syntax = "proto3";
2021-02-21 09:09:35 +00:00
package inetmock.audit;
option csharp_namespace = "INetMock.Client.Audit";
2021-02-13 17:20:57 +00:00
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit";
option java_multiple_files = true;
option java_outer_classname = "HandlerEventProto";
2021-02-21 09:09:35 +00:00
option java_package = "com.github.baez90.inetmock.audit";
2021-02-13 17:20:57 +00:00
import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
enum TransportProtocol {
2021-02-21 09:09:35 +00:00
UNKNOWN_TRANSPORT = 0;
TCP = 1;
UDP = 2;
2021-02-13 17:20:57 +00:00
}
enum AppProtocol {
2021-02-21 09:09:35 +00:00
UNKNOWN_APPLICATION = 0;
DNS = 1;
HTTP = 2;
HTTP_PROXY = 3;
2021-02-13 17:20:57 +00:00
}
enum TLSVersion {
2021-02-21 09:09:35 +00:00
SSLv30 = 0;
TLS10 = 1;
TLS11 = 2;
TLS12 = 3;
TLS13 = 4;
2021-02-13 17:20:57 +00:00
}
message TLSDetailsEntity {
2021-02-21 09:09:35 +00:00
TLSVersion version = 1;
string cipherSuite = 2;
string serverName = 3;
2021-02-13 17:20:57 +00:00
}
message EventEntity {
2021-02-21 09:09:35 +00:00
int64 id = 1;
google.protobuf.Timestamp timestamp = 2;
TransportProtocol transport = 3;
AppProtocol application = 4;
bytes sourceIP = 5;
bytes destinationIP = 6;
uint32 sourcePort = 7;
uint32 destinationPort = 8;
TLSDetailsEntity tls = 9;
google.protobuf.Any protocolDetails = 10;
2021-02-15 07:51:54 +00:00
}