Skip to main content

bloblang

DEPRECATED

This component is deprecated and will be removed in the next major version release. Please consider moving onto alternative components.

Generates messages at a given interval using a Bloblang mapping executed without a context. This allows you to generate messages for testing your pipeline configs.

# Config fields, showing default values
input:
label: ""
bloblang:
mapping: ""
interval: 1s
count: 0

Alternatives​

This input has been renamed to generate.

Fields​

mapping​

A bloblang mapping to use for generating messages.

Type: string
Default: ""

# Examples
mapping: root = "hello world"
mapping: root = {"test":"message","id":uuid_v4()}

interval​

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.

Type: string
Default: "1s"

# Examples
interval: 5s
interval: 1m
interval: 1h
interval: '@every 1s'
interval: 0,30 */2 * * * *
interval: 30 3-6,20-23 * * *

count​

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.

Type: int
Default: 0