/
injected_resource.proto
23 lines (18 loc) · 1.07 KB
/
injected_resource.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
syntax = "proto3";
package envoy.config.resource_monitor.injected_resource.v2alpha;
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option java_package = "io.envoyproxy.envoy.config.resource_monitor.injected_resource.v2alpha";
option java_outer_classname = "InjectedResourceProto";
option java_multiple_files = true;
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha";
option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#protodoc-title: Injected resource]
// [#extension: envoy.resource_monitors.injected_resource]
// The injected resource monitor allows injecting a synthetic resource pressure into Envoy
// via a text file, which must contain a floating-point number in the range [0..1] representing
// the resource pressure and be updated atomically by a symbolic link swap.
// This is intended primarily for integration tests to force Envoy into an overloaded state.
message InjectedResourceConfig {
string filename = 1 [(validate.rules).string = {min_bytes: 1}];
}