Generator configuration
time
Commentary
added in 0.5.7
global configuration
Sets the wallclock time to begin at the specified UNIX millisecond timestamp.
Examples
Set the starting time
Use time
in the global configuration to run as if this were the wallclock time at the outset of execution.
{
"generators": [
{
"topic": "sandbox",
"value": {
"now": {
"_gen": "formatDateTime",
"ms": {
"_gen": "now"
}
}
}
}
],
"globalConfigs": {
"time": 1420099200000
},
"connections": {
"kafka": {
"kind": "kafka",
"producerConfigs": {
"bootstrap.servers": "localhost:9092",
"key.serializer": "io.shadowtraffic.kafka.serdes.JsonSerializer",
"value.serializer": "io.shadowtraffic.kafka.serdes.JsonSerializer"
}
}
}
}
Specification
JSON schema
{
"type": "integer"
}