Skip to content

Feature Request - Add Delay Option #159

@coffeegist

Description

@coffeegist

Please describe your feature request:

Currently, notify only supports the -rl rate limit option which has a max limit of 1 request per second. This is too much for some services such as Microsoft Teams connectors and can cause temporary lockouts. (https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL#rate-limiting-for-connectors)

By adding a -delay flag as well (consisting with other PD tools), we could gain better control over the rate at which notifications are sent and avoid having notifications be temporarily blackholed.

Describe the use case of this feature:

As a user, I need to limit my notifications to not exceed 30 requests per hour. To accomplish this, I could use the flag, -delay 2, to add a 2-second delay between each request.

-delay int             delay between requests in seconds (0 to disable) (default 0)

Metadata

Metadata

Assignees

Labels

Priority: MediumThis issue may be useful, and needs some attention.Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions