hc: add health event sink interface and file sink implementation (#27419)
* add access log to health check Signed-off-by: Boteng Yao <boteng@google.com> Mirrored from https://github.com/envoyproxy/envoy @ 881bc030a8f1cdc904311de6c1cdba38ef8cc98apull/626/head
parent
20cb8b44bb
commit
e3de64f451
5 changed files with 48 additions and 3 deletions
@ -0,0 +1,9 @@ |
||||
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||
|
||||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_package( |
||||
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"], |
||||
) |
@ -0,0 +1,22 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.extensions.health_check.event_sinks.file.v3; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.extensions.health_check.event_sinks.file.v3"; |
||||
option java_outer_classname = "FileProto"; |
||||
option java_multiple_files = true; |
||||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/health_check/event_sinks/file/v3;filev3"; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: Health Check Log File Sink] |
||||
// [#extension: envoy.health_check.event_sinks.file] |
||||
|
||||
// Health check event file sink. |
||||
// The health check event will be converted to JSON. |
||||
message HealthCheckEventFileSink { |
||||
// Specifies the path to the health check event log. |
||||
string event_log_path = 1 [(validate.rules).string = {min_len: 1}]; |
||||
} |
Loading…
Reference in new issue