Interface MongoProxyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MongoProxy,MongoProxy.Builder
public interface MongoProxyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAccessLog()The optional path to use for writing Mongo access logs.com.google.protobuf.ByteStringgetAccessLogBytes()The optional path to use for writing Mongo access logs.StringgetCommands(int index)List of commands to emit metrics for.com.google.protobuf.ByteStringgetCommandsBytes(int index)List of commands to emit metrics for.intgetCommandsCount()List of commands to emit metrics for.List<String>getCommandsList()List of commands to emit metrics for.FaultDelaygetDelay()Inject a fixed delay before proxying a Mongo operation.FaultDelayOrBuildergetDelayOrBuilder()Inject a fixed delay before proxying a Mongo operation.booleangetEmitDynamicMetadata()Flag to specify whether :ref:`dynamic metadata <config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted.StringgetStatPrefix()The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.com.google.protobuf.ByteStringgetStatPrefixBytes()The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.booleanhasDelay()Inject a fixed delay before proxying a Mongo operation.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getStatPrefix
String getStatPrefix()
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Returns:
- The statPrefix.
-
getStatPrefixBytes
com.google.protobuf.ByteString getStatPrefixBytes()
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_mongo_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Returns:
- The bytes for statPrefix.
-
getAccessLog
String getAccessLog()
The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
string access_log = 2;- Returns:
- The accessLog.
-
getAccessLogBytes
com.google.protobuf.ByteString getAccessLogBytes()
The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
string access_log = 2;- Returns:
- The bytes for accessLog.
-
hasDelay
boolean hasDelay()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;- Returns:
- Whether the delay field is set.
-
getDelay
FaultDelay getDelay()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;- Returns:
- The delay.
-
getDelayOrBuilder
FaultDelayOrBuilder getDelayOrBuilder()
Inject a fixed delay before proxying a Mongo operation. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 3;
-
getEmitDynamicMetadata
boolean getEmitDynamicMetadata()
Flag to specify whether :ref:`dynamic metadata <config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted. Defaults to false.
bool emit_dynamic_metadata = 4;- Returns:
- The emitDynamicMetadata.
-
getCommandsList
List<String> getCommandsList()
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;- Returns:
- A list containing the commands.
-
getCommandsCount
int getCommandsCount()
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;- Returns:
- The count of commands.
-
getCommands
String getCommands(int index)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;- Parameters:
index- The index of the element to return.- Returns:
- The commands at the given index.
-
getCommandsBytes
com.google.protobuf.ByteString getCommandsBytes(int index)
List of commands to emit metrics for. Defaults to "delete", "insert", and "update". Note that metrics will not be emitted for "find" commands, since those are considered queries, and metrics for those are emitted under a dedicated "query" namespace.
repeated string commands = 5;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the commands at the given index.
-
-