You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* call m.Run() in TestMain
* TDD refactor date period and bindTime
* refactor date period and bindTime
* update docs
* fix typo in TestMain
* better docs on period
* extract nearTime logic
* extract generation logic
Copy file name to clipboardExpand all lines: docs/fields-configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ For each config entry the following fields are available:
13
13
-`fuzziness`*optional (`long` and `double` type only)*: when generating data you could want generated values to change in a known interval. Fuzziness allow to specify the maximum delta a generated value can have from the previous value (for the same field), as a delta percentage; value must be between 0.0 and 1.0, where 0 is 0% and 1 is 100%. When not specified there is no constraint on the generated values, boundaries will be defined by the underlying field type
14
14
-`range`*optional (`long` and `double` type only)*: value will be generated between `min` and `max`
15
15
-`cardinality`*optional*: number of different values for the field; note that this value may not be respected if not enough events are generated. Es `cardinality: 1000` with `100` generated events would produce `100` different values, not `1000`.
16
-
-`period`*optional (`date` type only)*: values will be evenly generated between `time.Now()` and `time.Now().Add(period)`, where period is expressed as `time.Duration`
16
+
-`period`*optional (`date` type only)*: values will be evenly generated between `time.Now()` and `time.Now().Add(period)`, where period is expressed as `time.Duration`. It accepts also a negative duration: in this case values will be evenly generated between `time.Now().Add(period)` and `time.Now()`.
17
17
-`object_keys`*optional (`object` type only)*: list of field names to generate in a object field type; if not specified a random number of field names will be generated in the object filed type
18
18
-`value`*optional*: hardcoded value to set for the field (any `cardinality` will be ignored)
19
19
-`enum`*optional (`keyword` type only)*: list of strings to randomly chose from a value to set for the field (any `cardinality` will be applied limited to the size of the `enum` values)
0 commit comments