docs/constraints: filter/fault.proto and filter/network/mongo_proxy.p… (#241)
This should provide an example of how to do the .proto doc linking, refactoring and constraint addition for the full API. Signed-off-by: Harvey Tuch <htuch@google.com>pull/244/head
parent
4c6922e283
commit
cfe196b4dd
15 changed files with 138 additions and 61 deletions
@ -0,0 +1,8 @@ |
||||
Envoy v1 API reference |
||||
====================== |
||||
|
||||
.. toctree:: |
||||
:glob: |
||||
:maxdepth: 2 |
||||
|
||||
network_filters/network_filters |
@ -0,0 +1,53 @@ |
||||
.. _config_network_filters_mongo_proxy_v1: |
||||
|
||||
Mongo proxy |
||||
=========== |
||||
|
||||
MongoDB :ref:`configuration overview <config_network_filters_mongo_proxy>`. |
||||
|
||||
.. code-block:: json |
||||
|
||||
{ |
||||
"name": "mongo_proxy", |
||||
"config": { |
||||
"stat_prefix": "...", |
||||
"access_log": "...", |
||||
"fault": {} |
||||
} |
||||
} |
||||
|
||||
stat_prefix |
||||
*(required, string)* The prefix to use when emitting :ref:`statistics |
||||
<config_network_filters_mongo_proxy_stats>`. |
||||
|
||||
access_log |
||||
*(optional, string)* 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 by |
||||
:ref:`runtime <config_network_filters_mongo_proxy_runtime>`. |
||||
|
||||
fault |
||||
*(optional, object)* If specified, the filter will inject faults based on the values in the object. |
||||
|
||||
Fault configuration |
||||
------------------- |
||||
|
||||
Configuration for MongoDB fixed duration delays. 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. |
||||
|
||||
.. code-block:: json |
||||
|
||||
{ |
||||
"fixed_delay": { |
||||
"percent": "...", |
||||
"duration_ms": "..." |
||||
} |
||||
} |
||||
|
||||
percent |
||||
*(required, integer)* Probability of an eligible MongoDB operation to be affected by the |
||||
injected fault when there is no active fault. Valid values are integers in a range of [0, 100]. |
||||
|
||||
duration_ms |
||||
*(required, integer)* Non-negative delay duration in milliseconds. |
||||
|
@ -0,0 +1,8 @@ |
||||
Network filters |
||||
=============== |
||||
|
||||
.. toctree:: |
||||
:glob: |
||||
:maxdepth: 2 |
||||
|
||||
* |
@ -0,0 +1,13 @@ |
||||
Filters |
||||
======= |
||||
|
||||
.. CAUTION:: |
||||
This documentation subtree is a work-in-progress and does not yet contain |
||||
complete documentation for the v2 API. Stay tuned for updates. |
||||
|
||||
.. toctree:: |
||||
:glob: |
||||
:maxdepth: 2 |
||||
|
||||
* |
||||
network/network |
@ -0,0 +1,12 @@ |
||||
Network filters |
||||
=============== |
||||
|
||||
.. CAUTION:: |
||||
This documentation subtree is a work-in-progress and does not yet contain |
||||
complete documentation for the v2 API. Stay tuned for updates. |
||||
|
||||
.. toctree:: |
||||
:glob: |
||||
:maxdepth: 2 |
||||
|
||||
* |
Loading…
Reference in new issue