Configure the stream generator
Please check Load sample streaming data for the overview of this data source.
Here is a sample of stream generator configuration json:
"timestamp_format": "2006-01-02 15:04:05.000"
The usage of each attribute:
|Field Name||Description||Sample Value|
|how many batched to be generated for each iteration|
|the interval between each iteration in millisecond|
|a random delta for the interval of each iteration|
|how many events to be generated, if |
|a list of fields definition|
fields, the following attributes are supported:
|name of the field|
|what types of data to be generated, support |
|optional for string, int and float, which is list of value that can be generated|
|optional for int and float, a list with two values that specify the min/max of the generated data|
|optional for timestamp type, following golang time string format rules|
|minimal delay for timestamp in ms|
|maximal delay for timestamp in ms|
|a generation rule in case the |
By default, the timestamp will be generated as an int which is the unit timestamp that is the time in ms since 1970.1.1.
timestamp_format is specified, it will be generated as a string using this
format. Refer to this document for details.
In case the field type is set as
regex, the generated data will be based on the regular expression specified in