Skip to main content Skip to footer

Data Generator Documentation

Version: 2.0.5

Retrieved: 2025-10-09 15:15:49


Data Generator

This module generates test data from JSON. The output can be used to test proof of concepts etc.

Settings

Name Requirements Purpose Default
Interval 0 seconds - 24 hours How often to produce output 1 second
Run on start true/false If true output will be produced without delay true
Number of samples 1 - 100.000 How many unique items to use 10
Add timestamp true/false If true a property `timestamp` with the current time is added to each item false
Output strategy Random, Ordered, Array Format and selection of output Random
JSON Valid JSON string The template to produce test-data from Tip: click on the label to generate a sample

The module will automatically use properties named id as a key if they are of type Integer or Guid.

Examples

Creates 3 objects to be used samples data. The output will be in the same order all the time (1,2,3...1,2,3). The name property will be an identifier to get unique names for each object. data.temp (integer) and data.rpm (double) will be random values.

# Settings:
Interval = 1 second
Number of samples = 3
Output strategy = Ordered
JSON = {
    "id":1,
    "name": "machine",
    "data" : {
        "temp": 67.5,
        "rpm": 4600
    }
}

Set 'name' to be an identifier
Set 'data.temp' to be random between 55.5-80.5
Set 'data.rpm' to be random between 3000-6000

# Outgoing message 1:
{
  "id": 1,
  "name": "machine-1",
  "data":{
      "temp":57.4,
      "rpm": 4689
  }
}

# Outgoing message 2:
{
  "id": 2,
  "name": "machine-2",
  "data":{
      "temp":62.1,
      "rpm": 5241
  }
}

# Outgoing message 3:
{
  "id": 3,
  "name": "machine-3",
  "data":{
      "temp":73.9,
      "rpm": 4109
  }
}