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

     1  ---
     2  title: sample
     3  type: processor
     4  status: deprecated
     5  ---
     6  
     7  <!--
     8       THIS FILE IS AUTOGENERATED!
     9  
    10       To make changes please edit the contents of:
    11       lib/processor/sample.go
    12  -->
    13  
    14  import Tabs from '@theme/Tabs';
    15  import TabItem from '@theme/TabItem';
    16  
    17  :::warning DEPRECATED
    18  This component is deprecated and will be removed in the next major version release. Please consider moving onto [alternative components](#alternatives).
    19  :::
    20  
    21  ```yaml
    22  # Config fields, showing default values
    23  label: ""
    24  sample:
    25    retain: 10
    26    seed: 0
    27  ```
    28  
    29  ## Fields
    30  
    31  ### `retain`
    32  
    33  The percentage of messages to keep.
    34  
    35  
    36  Type: `int`  
    37  Default: `10`  
    38  
    39  ### `seed`
    40  
    41  A seed for pseudo-random sampling.
    42  
    43  
    44  Type: `int`  
    45  Default: `0`  
    46  
    47  ## Alternatives
    48  
    49  All functionality of this processor has been superseded by the
    50  [bloblang](/docs/components/processors/bloblang) processor.
    51