client-dotnet/api/proto/audit/v1/event_entity.proto

58 lines
1.3 KiB
Protocol Buffer

syntax = "proto3";
package inetmock.audit.v1;
import "google/protobuf/timestamp.proto";
import "audit/v1/http_details.proto";
import "audit/v1/dns_details.proto";
import "audit/v1/dhcp_details.proto";
import "audit/v1/netmon_details.proto";
enum TransportProtocol {
TRANSPORT_PROTOCOL_UNSPECIFIED = 0;
TRANSPORT_PROTOCOL_TCP = 1;
TRANSPORT_PROTOCOL_UDP = 2;
}
enum AppProtocol {
APP_PROTOCOL_UNSPECIFIED = 0;
APP_PROTOCOL_DNS = 1;
APP_PROTOCOL_HTTP = 2;
APP_PROTOCOL_HTTP_PROXY = 3;
APP_PROTOCOL_PPROF = 4;
APP_PROTOCOL_DNS_OVER_HTTPS = 5;
APP_PROTOCOL_DHCP = 6;
}
enum TLSVersion {
TLS_VERSION_UNSPECIFIED = 0;
TLS_VERSION_TLS10 = 1;
TLS_VERSION_TLS11 = 2;
TLS_VERSION_TLS12 = 3;
TLS_VERSION_TLS13 = 4;
}
message TLSDetailsEntity {
TLSVersion version = 1;
string cipher_suite = 2;
string server_name = 3;
}
message EventEntity {
int64 id = 1;
google.protobuf.Timestamp timestamp = 2;
TransportProtocol transport = 3;
AppProtocol application = 4;
bytes source_ip = 5;
bytes destination_ip = 6;
uint32 source_port = 7;
uint32 destination_port = 8;
TLSDetailsEntity tls = 9;
oneof protocol_details {
HTTPDetailsEntity http = 20;
DNSDetailsEntity dns = 21;
DHCPDetailsEntity dhcp = 22;
NetMonDetailsEntity net_mon = 23;
}
}