Decorator that marks a function for securing a metric. The decorator takes the metric name prefix and type of action.
The function should return a boolean or a Promise of a boolean indicating whether the action is allowed.
Promise
Decorator that marks a function for securing a metric. The decorator takes the metric name prefix and type of action.
The function should return a boolean or a
Promise
of a boolean indicating whether the action is allowed.