Skip to content

how to customize the message.json #289

@gabrielmancini

Description

@gabrielmancini

when i run:

emqtt_bench pub -h localhost -p 1884 -c 3000 -I 1000 --prometheus --restapi 9092 -t dev/%c/%i/read -mtemplate://message.json

and message.json

{
  "xy": [false, true, true, false, false, false, false],
  "xx": [false, false, false, false, false, false, false, false],
  "yy": [5276, 0, 0, 0, 0, 0, 27, 61],
  "yx": [3, 0, 0, 0],
  "ob": {
    "t": 0,
    "v": "S",
    "a": 0,
    "o": 1.3
  },
  "_time": %TIMESTAMP%,
  "count": 0
}

there is a way to flip some data in randomic "controlled" way? like change

"xy": [false, true, true, false, false, false, false] 

to

"xy": [true, true, false, false, true, false, true]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions