api/proto/audit/v1/event_entity.proto

53 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

2021-02-13 17:20:57 +00:00
syntax = "proto3";
2021-02-21 16:10:22 +00:00
package inetmock.audit.v1;
2021-02-21 09:09:35 +00:00
option csharp_namespace = "INetMock.Client.Audit";
2021-02-22 09:59:40 +00:00
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit/v1";
2021-02-13 17:20:57 +00:00
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 16:10:22 +00:00
TRANSPORT_PROTOCOL_UNSPECIFIED = 0;
TRANSPORT_PROTOCOL_TCP = 1;
TRANSPORT_PROTOCOL_UDP = 2;
2021-02-13 17:20:57 +00:00
}
enum AppProtocol {
2021-02-21 16:10:22 +00:00
APP_PROTOCOL_UNSPECIFIED = 0;
APP_PROTOCOL_DNS = 1;
APP_PROTOCOL_HTTP = 2;
APP_PROTOCOL_HTTP_PROXY = 3;
2021-02-13 17:20:57 +00:00
}
enum TLSVersion {
2021-02-21 16:10:22 +00:00
TLS_VERSION_UNSPECIFIED = 0;
TLS_VERSION_TLS10 = 1;
TLS_VERSION_TLS11 = 2;
TLS_VERSION_TLS12 = 3;
TLS_VERSION_TLS13 = 4;
2021-02-13 17:20:57 +00:00
}
message TLSDetailsEntity {
2021-02-21 09:09:35 +00:00
TLSVersion version = 1;
2021-02-21 16:10:22 +00:00
string cipher_suite = 2;
string server_name = 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;
2021-02-21 16:10:22 +00:00
bytes source_ip = 5;
bytes destination_ip = 6;
uint32 source_port = 7;
uint32 destination_port = 8;
2021-02-21 09:09:35 +00:00
TLSDetailsEntity tls = 9;
2021-02-21 16:10:22 +00:00
google.protobuf.Any protocol_details = 10;
2021-02-15 07:51:54 +00:00
}