github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/conditions/bounds_check.md (about)

     1  ---
     2  title: bounds_check
     3  type: condition
     4  status: stable
     5  ---
     6  
     7  <!--
     8       THIS FILE IS AUTOGENERATED!
     9  
    10       To make changes please edit the contents of:
    11       lib/condition/bounds_check.go
    12  -->
    13  
    14  import Tabs from '@theme/Tabs';
    15  import TabItem from '@theme/TabItem';
    16  
    17  
    18  Checks a message against a set of bounds, if any bound fails then this condition
    19  resolves to false.
    20  
    21  
    22  <Tabs defaultValue="common" values={[
    23    { label: 'Common', value: 'common', },
    24    { label: 'Advanced', value: 'advanced', },
    25  ]}>
    26  
    27  <TabItem value="common">
    28  
    29  ```yaml
    30  # Common config fields, showing default values
    31  bounds_check:
    32    max_part_size: 1073741824
    33    min_part_size: 1
    34  ```
    35  
    36  </TabItem>
    37  <TabItem value="advanced">
    38  
    39  ```yaml
    40  # All config fields, showing default values
    41  bounds_check:
    42    max_part_size: 1073741824
    43    min_part_size: 1
    44    max_parts: 100
    45    min_parts: 1
    46  ```
    47  
    48  </TabItem>
    49  </Tabs>
    50  
    51  ## Fields
    52  
    53  ### `max_part_size`
    54  
    55  The maximum size of a message to allow (in bytes)
    56  
    57  
    58  Type: `number`  
    59  Default: `1073741824`  
    60  
    61  ### `min_part_size`
    62  
    63  The minimum size of a message to allow (in bytes)
    64  
    65  
    66  Type: `number`  
    67  Default: `1`  
    68  
    69  ### `max_parts`
    70  
    71  The maximum size of message batches to allow (in message count)
    72  
    73  
    74  Type: `number`  
    75  Default: `100`  
    76  
    77  ### `min_parts`
    78  
    79  The minimum size of message batches to allow (in message count)
    80  
    81  
    82  Type: `number`  
    83  Default: `1`  
    84  
    85