147 lines
3.3 KiB
Protocol Buffer
147 lines
3.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package envoy.config.accesslog.v3;
|
|
|
|
import "envoy/config/core/v3/base.proto";
|
|
import "envoy/config/route/v3/route_components.proto";
|
|
import "envoy/data/accesslog/v3/accesslog.proto";
|
|
import "envoy/type/matcher/v3/metadata.proto";
|
|
import "envoy/type/v3/percent.proto";
|
|
import "google/protobuf/any.proto";
|
|
import "google/protobuf/wrappers.proto";
|
|
import "udpa/annotations/status.proto";
|
|
import "udpa/annotations/versioning.proto";
|
|
import "validate/validate.proto";
|
|
|
|
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3;accesslogv3";
|
|
option java_multiple_files = true;
|
|
option java_outer_classname = "AccesslogProto";
|
|
option java_package = "io.envoyproxy.envoy.config.accesslog.v3";
|
|
|
|
message AccessLog {
|
|
string name = 1;
|
|
AccessLogFilter filter = 2;
|
|
|
|
oneof config_type {
|
|
google.protobuf.Any typed_config = 4;
|
|
}
|
|
|
|
reserved 3;
|
|
|
|
reserved "config";
|
|
}
|
|
|
|
message AccessLogFilter {
|
|
oneof filter_specifier {
|
|
StatusCodeFilter status_code_filter = 1;
|
|
DurationFilter duration_filter = 2;
|
|
NotHealthCheckFilter not_health_check_filter = 3;
|
|
TraceableFilter traceable_filter = 4;
|
|
RuntimeFilter runtime_filter = 5;
|
|
AndFilter and_filter = 6;
|
|
OrFilter or_filter = 7;
|
|
HeaderFilter header_filter = 8;
|
|
ResponseFlagFilter response_flag_filter = 9;
|
|
GrpcStatusFilter grpc_status_filter = 10;
|
|
ExtensionFilter extension_filter = 11;
|
|
MetadataFilter metadata_filter = 12;
|
|
LogTypeFilter log_type_filter = 13;
|
|
}
|
|
}
|
|
|
|
message ComparisonFilter {
|
|
Op op = 1;
|
|
enum Op {
|
|
EQ = 0;
|
|
GE = 1;
|
|
LE = 2;
|
|
}
|
|
|
|
core.v3.RuntimeUInt32 value = 2;
|
|
}
|
|
|
|
message StatusCodeFilter {
|
|
ComparisonFilter comparison = 1;
|
|
}
|
|
|
|
message DurationFilter {
|
|
ComparisonFilter comparison = 1;
|
|
}
|
|
|
|
message NotHealthCheckFilter {
|
|
|
|
}
|
|
|
|
message TraceableFilter {
|
|
|
|
}
|
|
|
|
message RuntimeFilter {
|
|
string runtime_key = 1;
|
|
type.v3.FractionalPercent percent_sampled = 2;
|
|
bool use_independent_randomness = 3;
|
|
}
|
|
|
|
message AndFilter {
|
|
repeated AccessLogFilter filters = 1;
|
|
}
|
|
|
|
message OrFilter {
|
|
repeated AccessLogFilter filters = 2;
|
|
}
|
|
|
|
message HeaderFilter {
|
|
route.v3.HeaderMatcher header = 1;
|
|
}
|
|
|
|
message ResponseFlagFilter {
|
|
repeated string flags = 1;
|
|
}
|
|
|
|
message GrpcStatusFilter {
|
|
repeated Status statuses = 1;
|
|
enum Status {
|
|
OK = 0;
|
|
CANCELED = 1;
|
|
UNKNOWN = 2;
|
|
INVALID_ARGUMENT = 3;
|
|
DEADLINE_EXCEEDED = 4;
|
|
NOT_FOUND = 5;
|
|
ALREADY_EXISTS = 6;
|
|
PERMISSION_DENIED = 7;
|
|
RESOURCE_EXHAUSTED = 8;
|
|
FAILED_PRECONDITION = 9;
|
|
ABORTED = 10;
|
|
OUT_OF_RANGE = 11;
|
|
UNIMPLEMENTED = 12;
|
|
INTERNAL = 13;
|
|
UNAVAILABLE = 14;
|
|
DATA_LOSS = 15;
|
|
UNAUTHENTICATED = 16;
|
|
}
|
|
|
|
bool exclude = 2;
|
|
}
|
|
|
|
message MetadataFilter {
|
|
type.matcher.v3.MetadataMatcher matcher = 1;
|
|
google.protobuf.BoolValue match_if_key_not_found = 2;
|
|
}
|
|
|
|
message LogTypeFilter {
|
|
repeated data.accesslog.v3.AccessLogType types = 1;
|
|
bool exclude = 2;
|
|
}
|
|
|
|
message ExtensionFilter {
|
|
string name = 1;
|
|
|
|
oneof config_type {
|
|
google.protobuf.Any typed_config = 3;
|
|
}
|
|
|
|
reserved 2;
|
|
|
|
reserved "config";
|
|
}
|