@@ -28,18 +28,18 @@ Options:
2828 --address TEXT address to send.
2929 --port TEXT Port to send.
3030 --tag TEXT Tag from Devo.
31- --file_name TEXT File name to store events. If file name exist
32- will only store the events in a file. Can be
33- used with batch mode to set the file where
34- store the batch events
35-
3631 --simulation Set as simulation. Shows the event in the
3732 console, but do not send it
3833
3934 -t, --template FILENAME Template to send. [required]
4035 -p, --providers FILENAME File with custom providers dict.
4136 -i, --interactive Interactive mode.
4237 -raw, --raw_mode Send raw mode.
38+ --file_name TEXT Use File Fake Generator.File name to store
39+ events. If file name exist will only store the
40+ events in a file. Can be used with batch mode
41+ to set the file where store the batch events
42+
4343 --probability INTEGER Probability (0-100).
4444 --frequency TEXT Frequency in seconds. Example: "1.0-5.0" =
4545 random time between 1 sec. to 5secs.
@@ -65,6 +65,13 @@ Options:
6565 --help Show this message and exit.
6666```
6767
68+
69+ You can use all the flags/values in a config file, using the name of the flags with two "-"
70+ For example, for ` -raw, --raw_mode ` you need use in config file the value ` raw_mode `
71+ for ` -i, --interactive ` , ` interactive ` , etc.
72+
73+ And all values into one object called "faker" in the main level:
74+
6875The config.json file could be like this:
6976```
7077{
@@ -76,9 +83,13 @@ The config.json file could be like this:
7683 "address": "eu.elb.relay.logtrust.net",
7784 "port": 443
7885 },
79- "verbose": true,
80- "probability": 80,
81- "frequency": (2,4)
86+ "faker"{
87+ "verbose": true,
88+ "probability": 80,
89+ "frequency": (2,4),
90+ "interactive": true,
91+ "template": "/path/to/template.file"
92+ }
8293}
8394```
8495
@@ -91,8 +102,10 @@ sender:
91102 tag: "test.keep.free",
92103 address: "eu.elb.relay.logtrust.net",
93104 port: 443
94- simulation: true
95- probability: 50
96- frequency: (1,3)
97- providers: providers.py
105+ faker:
106+ simulation: true
107+ probability: 50
108+ batch_mode: true
109+ dont_remove_microseconds: true
110+ providers: providers.py
98111```
0 commit comments