public interface RuntimeFilterOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
FractionalPercent |
getPercentSampled()
The default sampling percentage.
|
FractionalPercentOrBuilder |
getPercentSampledOrBuilder()
The default sampling percentage.
|
String |
getRuntimeKey()
Runtime key to get an optional overridden numerator for use in the *percent_sampled* field.
|
com.google.protobuf.ByteString |
getRuntimeKeyBytes()
Runtime key to get an optional overridden numerator for use in the *percent_sampled* field.
|
boolean |
getUseIndependentRandomness()
By default, sampling pivots on the header
:ref:`x-request-id<config_http_conn_man_headers_x-request-id>` being present.
|
boolean |
hasPercentSampled()
The default sampling percentage.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getRuntimeKey()
Runtime key to get an optional overridden numerator for use in the *percent_sampled* field. If found in runtime, this value will replace the default numerator.
string runtime_key = 1 [(.validate.rules) = { ... }com.google.protobuf.ByteString getRuntimeKeyBytes()
Runtime key to get an optional overridden numerator for use in the *percent_sampled* field. If found in runtime, this value will replace the default numerator.
string runtime_key = 1 [(.validate.rules) = { ... }boolean hasPercentSampled()
The default sampling percentage. If not specified, defaults to 0% with denominator of 100.
.envoy.type.FractionalPercent percent_sampled = 2;FractionalPercent getPercentSampled()
The default sampling percentage. If not specified, defaults to 0% with denominator of 100.
.envoy.type.FractionalPercent percent_sampled = 2;FractionalPercentOrBuilder getPercentSampledOrBuilder()
The default sampling percentage. If not specified, defaults to 0% with denominator of 100.
.envoy.type.FractionalPercent percent_sampled = 2;boolean getUseIndependentRandomness()
By default, sampling pivots on the header :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` being present. If :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` is present, the filter will consistently sample across multiple hosts based on the runtime key value and the value extracted from :ref:`x-request-id<config_http_conn_man_headers_x-request-id>`. If it is missing, or *use_independent_randomness* is set to true, the filter will randomly sample based on the runtime key value alone. *use_independent_randomness* can be used for logging kill switches within complex nested :ref:`AndFilter <envoy_api_msg_config.filter.accesslog.v2.AndFilter>` and :ref:`OrFilter <envoy_api_msg_config.filter.accesslog.v2.OrFilter>` blocks that are easier to reason about from a probability perspective (i.e., setting to true will cause the filter to behave like an independent random variable when composed within logical operator filters).
bool use_independent_randomness = 3;Copyright © 2018–2021 The Envoy Project. All rights reserved.