redis.proto 1.1 KB

123456789101112131415161718192021222324252627
  1. syntax = "proto3";
  2. package envoy.extensions.health_checkers.redis.v3;
  3. import "udpa/annotations/status.proto";
  4. import "udpa/annotations/versioning.proto";
  5. option java_package = "io.envoyproxy.envoy.extensions.health_checkers.redis.v3";
  6. option java_outer_classname = "RedisProto";
  7. option java_multiple_files = true;
  8. option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/health_checkers/redis/v3;redisv3";
  9. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  10. // [#protodoc-title: Redis]
  11. // Redis health checker :ref:`configuration overview <config_health_checkers_redis>`.
  12. // [#extension: envoy.health_checkers.redis]
  13. message Redis {
  14. option (udpa.annotations.versioning).previous_message_type =
  15. "envoy.config.health_checker.redis.v2.Redis";
  16. // If set, optionally perform ``EXISTS <key>`` instead of ``PING``. A return value
  17. // from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other
  18. // than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance
  19. // by setting the specified key to any value and waiting for traffic to drain.
  20. string key = 1;
  21. }