The Impulse source generates a stream of events at a specified interval. It is useful for testing and can be used to drive more complex generated sources.

Configuring the Connection

Impulse sources can be created via the Web UI or directly in SQL.

An impulse connection has several required and optional fields:

FieldDescriptionRequiredExample
event_rateThe number of messages per second to produceYes100
event_time_intervalThe number of microseconds between the event times of subsequent events emitted by the source; if not set wall-clock time is usedNo200000
message_countIf set, the source will finish after emitting this many messages; otherwise it runs indefinitelyNo50000

An impulse source can be created in SQL like this:

CREATE TABLE impulse WITH (
    connector = 'impulse',
    event_rate = '100'
);