runtime: Implement runtime double helper class (#10630)

This patch adds the RuntimeDouble helper class, similar to the
RuntimeUint32 class.

Signed-off-by: Tony Allen <tony@allen.gg>

Mirrored from https://github.com/envoyproxy/envoy @ 15330aa60bd6da79be02f00b8130b527f11eb0fa
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent dbacb6dbe7
commit 7c7e39c07d
  1. 9
      envoy/api/v2/core/base.proto
  2. 11
      envoy/config/core/v3/base.proto

@ -232,6 +232,15 @@ message RuntimeUInt32 {
string runtime_key = 3 [(validate.rules).string = {min_bytes: 1}];
}
// Runtime derived double with a default when not specified.
message RuntimeDouble {
// Default value if runtime value is not available.
double default_value = 1;
// Runtime key to get value for comparison. This value is used if defined.
string runtime_key = 2 [(validate.rules).string = {min_bytes: 1}];
}
// Runtime derived bool with a default when not specified.
message RuntimeFeatureFlag {
// Default value if runtime value is not available.

@ -239,6 +239,17 @@ message RuntimeUInt32 {
string runtime_key = 3 [(validate.rules).string = {min_bytes: 1}];
}
// Runtime derived double with a default when not specified.
message RuntimeDouble {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.core.RuntimeDouble";
// Default value if runtime value is not available.
double default_value = 1;
// Runtime key to get value for comparison. This value is used if defined.
string runtime_key = 2 [(validate.rules).string = {min_bytes: 1}];
}
// Runtime derived bool with a default when not specified.
message RuntimeFeatureFlag {
option (udpa.annotations.versioning).previous_message_type =

Loading…
Cancel
Save