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

     1  ---
     2  title: bloblang
     3  type: input
     4  status: deprecated
     5  categories: ["Utility"]
     6  ---
     7  
     8  <!--
     9       THIS FILE IS AUTOGENERATED!
    10  
    11       To make changes please edit the contents of:
    12       lib/input/bloblang.go
    13  -->
    14  
    15  import Tabs from '@theme/Tabs';
    16  import TabItem from '@theme/TabItem';
    17  
    18  :::warning DEPRECATED
    19  This component is deprecated and will be removed in the next major version release. Please consider moving onto [alternative components](#alternatives).
    20  :::
    21  
    22  Generates messages at a given interval using a [Bloblang](/docs/guides/bloblang/about)
    23  mapping executed without a context. This allows you to generate messages for
    24  testing your pipeline configs.
    25  
    26  ```yaml
    27  # Config fields, showing default values
    28  input:
    29    label: ""
    30    bloblang:
    31      mapping: ""
    32      interval: 1s
    33      count: 0
    34  ```
    35  
    36  ## Alternatives
    37  
    38  This input has been [renamed to `generate`](/docs/components/inputs/generate).
    39  
    40  
    41  ## Fields
    42  
    43  ### `mapping`
    44  
    45  A [bloblang](/docs/guides/bloblang/about) mapping to use for generating messages.
    46  
    47  
    48  Type: `string`  
    49  Default: `""`  
    50  
    51  ```yaml
    52  # Examples
    53  
    54  mapping: root = "hello world"
    55  
    56  mapping: root = {"test":"message","id":uuid_v4()}
    57  ```
    58  
    59  ### `interval`
    60  
    61  The time interval at which messages should be generated, expressed either as a duration string or as a cron expression. If set to an empty string messages will be generated as fast as downstream services can process them.
    62  
    63  
    64  Type: `string`  
    65  Default: `"1s"`  
    66  
    67  ```yaml
    68  # Examples
    69  
    70  interval: 5s
    71  
    72  interval: 1m
    73  
    74  interval: 1h
    75  
    76  interval: '@every 1s'
    77  
    78  interval: 0,30 */2 * * * *
    79  
    80  interval: 30 3-6,20-23 * * *
    81  ```
    82  
    83  ### `count`
    84  
    85  An optional number of messages to generate, if set above 0 the specified number of messages is generated and then the input will shut down.
    86  
    87  
    88  Type: `int`  
    89  Default: `0`  
    90  
    91