You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
5 years ago
|
syntax = "proto3";
|
||
|
|
||
5 years ago
|
package envoy.data.tap.v3;
|
||
5 years ago
|
|
||
5 years ago
|
import "udpa/annotations/versioning.proto";
|
||
|
|
||
5 years ago
|
option java_package = "io.envoyproxy.envoy.data.tap.v3";
|
||
5 years ago
|
option java_outer_classname = "CommonProto";
|
||
|
option java_multiple_files = true;
|
||
|
|
||
|
// [#protodoc-title: Tap common data]
|
||
|
|
||
|
// Wrapper for tapped body data. This includes HTTP request/response body, transport socket received
|
||
|
// and transmitted data, etc.
|
||
|
message Body {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type = "envoy.data.tap.v2alpha.Body";
|
||
5 years ago
|
|
||
5 years ago
|
oneof body_type {
|
||
|
// Body data as bytes. By default, tap body data will be present in this field, as the proto
|
||
|
// `bytes` type can contain any valid byte.
|
||
|
bytes as_bytes = 1;
|
||
|
|
||
|
// Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING
|
||
5 years ago
|
// <envoy_api_enum_value_config.tap.v3.OutputSink.Format.JSON_BODY_AS_STRING>` sink
|
||
5 years ago
|
// format type is selected. See the documentation for that option for why this is useful.
|
||
|
string as_string = 2;
|
||
|
}
|
||
|
|
||
|
// Specifies whether body data has been truncated to fit within the specified
|
||
|
// :ref:`max_buffered_rx_bytes
|
||
5 years ago
|
// <envoy_api_field_config.tap.v3.OutputConfig.max_buffered_rx_bytes>` and
|
||
5 years ago
|
// :ref:`max_buffered_tx_bytes
|
||
5 years ago
|
// <envoy_api_field_config.tap.v3.OutputConfig.max_buffered_tx_bytes>` settings.
|
||
5 years ago
|
bool truncated = 3;
|
||
|
}
|