h2non/toxy

Time window rule

h2non opened this issue · 1 comments

h2non commented

Enable/disable poisoning based on a specific time threshold. Useful for testing failures in specific recurrent periods of time.

proxy.rule(toxy.rules.timeThreshold({ period: 1000 * 60 * 60, duration: 500 }))

Or using a random value within a given range:

proxy.rule(toxy.rules.timeThreshold({ period: 1000 * 60 * 60, duration: [100, 1000] }))
h2non commented

Feature already shipped in 0.3.5.