Skip to main content

Generator configuration

maxEvents

Commentary

added in 0.4.3

local configuration

global configuration

The maximum number of events this generator can create. After it meets this number, this generator becomes dormant.


Examples

Local configuration

Use localConfigs to set maxEvents locally for one generator.

{
"generators": [
{
"table": "orders",
"row": {
"orderId": {
"_gen": "uuid"
},
"orderDate": {
"_gen": "dateToday"
},
"cost": {
"_gen": "normalDistribution",
"mean": 50,
"sd": 20
}
},
"localConfigs": {
"maxEvents": 18000
}
}
]
}

Global configuration

Use globalConfigs to set maxEvents globally for all generators.

{
"generators": [
{
"table": "orders",
"row": {
"orderId": {
"_gen": "uuid"
},
"orderDate": {
"_gen": "dateToday"
},
"cost": {
"_gen": "normalDistribution",
"mean": 50,
"sd": 20
}
}
}
],
"globalConfigs": {
"maxEvents": 200
}
}

Specification

JSON schema

{
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "object",
"properties": {
"_gen": {
"type": "string"
}
},
"required": [
"_gen"
]
}
]
}