ParametricRateConstraint Function

Like RateConstraint, throttle a point from being produced more than once during a certain period but for any specific data set.

If the events differ in data, each data set is tracked in a separate time bucket.

Signature

ParametricRateConstraint(config: Object) -> Constraint

Parameters (4)

config
Object
config.period
Period
config.serializeFn
(Object) -> String

Implement this if the event data can not be serialized as JSON.

config.useContext
Boolean

Use the context along with the data to identify buckets.

Defaults to: false