|
| 1 | +syntax = "proto3"; |
| 2 | + |
| 3 | +package envoy.admin.v2alpha; |
| 4 | +option java_package = "io.envoyproxy.envoy.admin.v2alpha"; |
| 5 | +option java_multiple_files = true; |
| 6 | + |
| 7 | +import "google/protobuf/duration.proto"; |
| 8 | + |
| 9 | +// [#protodoc-title: Server State] |
| 10 | + |
| 11 | +// Proto representation of the value returned by /server_info, containing |
| 12 | +// server version/server status information. |
| 13 | +message ServerInfo { |
| 14 | + // Server version. |
| 15 | + string version = 1; |
| 16 | + |
| 17 | + enum State { |
| 18 | + // Server is live and serving traffic. |
| 19 | + LIVE = 0; |
| 20 | + // Server is draining listeners in response to external health checks failing. |
| 21 | + DRAINING = 1; |
| 22 | + // Server has not yet completed cluster manager initialization. |
| 23 | + PRE_INITIALIZING = 2; |
| 24 | + // Server is running the cluster manager initialization callbacks (e.g., RDS). |
| 25 | + INITIALIZING = 3; |
| 26 | + } |
| 27 | + |
| 28 | + // State of the server. |
| 29 | + State state = 2; |
| 30 | + |
| 31 | + // Uptime since current epoch was started. |
| 32 | + google.protobuf.Duration uptime_current_epoch = 3; |
| 33 | + |
| 34 | + // Uptime since the start of the first epoch. |
| 35 | + google.protobuf.Duration uptime_all_epochs = 4; |
| 36 | + |
| 37 | + // Command line options the server is currently running with. |
| 38 | + CommandLineOptions command_line_options = 6; |
| 39 | +} |
| 40 | + |
| 41 | +message CommandLineOptions { |
| 42 | + // See :option:`--base-id` for details. |
| 43 | + uint64 base_id = 1; |
| 44 | + |
| 45 | + // See :option:`--concurrency` for details. |
| 46 | + uint32 concurrency = 2; |
| 47 | + |
| 48 | + // See :option:`--config-path` for details. |
| 49 | + string config_path = 3; |
| 50 | + |
| 51 | + // See :option:`--config-yaml` for details. |
| 52 | + string config_yaml = 4; |
| 53 | + |
| 54 | + // See :option:`--allow-unknown-fields` for details. |
| 55 | + bool allow_unknown_fields = 5; |
| 56 | + |
| 57 | + // See :option:`--admin-address-path` for details. |
| 58 | + string admin_address_path = 6; |
| 59 | + |
| 60 | + enum IpVersion { |
| 61 | + v4 = 0; |
| 62 | + v6 = 1; |
| 63 | + } |
| 64 | + |
| 65 | + // See :option:`--local-address-ip-version` for details. |
| 66 | + IpVersion local_address_ip_version = 7; |
| 67 | + |
| 68 | + // See :option:`--log-level` for details. |
| 69 | + string log_level = 8; |
| 70 | + |
| 71 | + // See :option:`--component-log-level` for details. |
| 72 | + string component_log_level = 9; |
| 73 | + |
| 74 | + // See :option:`--log-format` for details. |
| 75 | + string log_format = 10; |
| 76 | + |
| 77 | + // See :option:`--log-path` for details. |
| 78 | + string log_path = 11; |
| 79 | + |
| 80 | + // See :option:`--hot-restart-version` for details. |
| 81 | + bool hot_restart_version = 12; |
| 82 | + |
| 83 | + // See :option:`--service-cluster` for details. |
| 84 | + string service_cluster = 13; |
| 85 | + |
| 86 | + // See :option:`--service-node` for details. |
| 87 | + string service_node = 14; |
| 88 | + |
| 89 | + // See :option:`--service-zone` for details. |
| 90 | + string service_zone = 15; |
| 91 | + |
| 92 | + // See :option:`--file-flush-interval-msec` for details. |
| 93 | + google.protobuf.Duration file_flush_interval = 16; |
| 94 | + |
| 95 | + // See :option:`--drain-time-s` for details. |
| 96 | + google.protobuf.Duration drain_time = 17; |
| 97 | + |
| 98 | + // See :option:`--parent-shutdown-time-s` for details. |
| 99 | + google.protobuf.Duration parent_shutdown_time = 18; |
| 100 | + |
| 101 | + enum Mode { |
| 102 | + // Validate configs and then serve traffic normally. |
| 103 | + Serve = 0; |
| 104 | + |
| 105 | + // Validate configs and exit. |
| 106 | + Validate = 1; |
| 107 | + |
| 108 | + // Completely load and initialize the config, and then exit without running the listener loop. |
| 109 | + InitOnly = 2; |
| 110 | + } |
| 111 | + |
| 112 | + // See :option:`--mode` for details. |
| 113 | + Mode mode = 19; |
| 114 | + |
| 115 | + // See :option:`--max-stats` for details. |
| 116 | + uint64 max_stats = 20; |
| 117 | + |
| 118 | + // See :option:`--max-obj-name-len` for details. |
| 119 | + uint64 max_obj_name_len = 21; |
| 120 | + |
| 121 | + // See :option:`--disable-hot-restart` for details. |
| 122 | + bool disable_hot_restart = 22; |
| 123 | + |
| 124 | + // See :option:`--enable-mutex-tracing` for details. |
| 125 | + bool enable_mutex_tracing = 23; |
| 126 | + |
| 127 | + // See :option:`--restart-epoch` for details. |
| 128 | + uint32 restart_epoch = 24; |
| 129 | +} |
0 commit comments