mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-10 10:32:23 +00:00
update(usersoace/falco): allow aliases for enum types
Co-authored-by: Lorenzo Fontana <lo@linux.com> Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
parent
3cea413177
commit
bd90a6ce89
@ -2,32 +2,56 @@ syntax = "proto3";
|
|||||||
|
|
||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
|
|
||||||
service falco_output_service {
|
|
||||||
rpc subscribe(falco_output_request) returns (stream falco_output_response);
|
service service {
|
||||||
|
rpc subscribe(request) returns (stream response);
|
||||||
}
|
}
|
||||||
|
|
||||||
message falco_output_request {
|
message request {
|
||||||
string duration = 1; // TODO(leodido, fntlnz): not handled yet but keeping for reference.
|
string duration = 1; // TODO(leodido, fntlnz): not handled yet but keeping for reference.
|
||||||
bool keepalive = 2;
|
bool keepalive = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum priority {
|
enum priority {
|
||||||
|
option allow_alias = true;
|
||||||
EMERGENCY = 0;
|
EMERGENCY = 0;
|
||||||
|
emergency = 0;
|
||||||
|
Emergency = 0;
|
||||||
ALERT = 1;
|
ALERT = 1;
|
||||||
|
alert = 1;
|
||||||
|
Alert = 1;
|
||||||
CRITICAL = 2;
|
CRITICAL = 2;
|
||||||
|
critical = 2;
|
||||||
|
Critical = 2;
|
||||||
ERROR = 3;
|
ERROR = 3;
|
||||||
|
error = 3;
|
||||||
|
Error = 3;
|
||||||
WARNING = 4;
|
WARNING = 4;
|
||||||
|
warning = 4;
|
||||||
|
Warning = 4;
|
||||||
NOTICE = 5;
|
NOTICE = 5;
|
||||||
|
notice = 5;
|
||||||
|
Notice = 5;
|
||||||
INFORMATIONAL = 6;
|
INFORMATIONAL = 6;
|
||||||
|
informational = 6;
|
||||||
|
Informational = 6;
|
||||||
DEBUG = 7;
|
DEBUG = 7;
|
||||||
|
debug = 7;
|
||||||
|
Debug = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum source {
|
enum source {
|
||||||
|
option allow_alias = true;
|
||||||
SYSCALL = 0;
|
SYSCALL = 0;
|
||||||
|
syscall = 0;
|
||||||
|
Syscall = 0;
|
||||||
K8S_AUDIT = 1;
|
K8S_AUDIT = 1;
|
||||||
|
k8s_audit = 1;
|
||||||
|
K8s_audit = 1;
|
||||||
|
K8S_audit = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message falco_output_response {
|
message response {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
google.protobuf.Timestamp time = 2;
|
google.protobuf.Timestamp time = 2;
|
||||||
priority priority = 3;
|
priority priority = 3;
|
||||||
|
Loading…
Reference in New Issue
Block a user