Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request/Info: Can we set a notification interval for different URLs #45

Open
pnkdoshi opened this issue Nov 11, 2021 · 1 comment
Open

Comments

@pnkdoshi
Copy link

Is your feature request related to a problem? Please describe.
I would like to set some URLs to send out multiple notifications in a day. I know that data is stored in plugin_webseer_urls table so I can create my own script for it, but is there a way or can we create a way to set a notification interval on a URL.

Describe the solution you'd like
Set up a notification interval on URLs independently

Describe alternatives you've considered
I can create my own script to run against the table plugin_webseer_urls for what I am looking for.

Additional context
None

@netniV
Copy link
Member

netniV commented Nov 14, 2021

To do this, you would need several fields in both the edit screen and database, which may or may not exist yet, for last polled time and polling interval. You would then need to work out whether the difference between now and last polled time is greater or equal to your desired interval. That could be done in a single SQL statement when obtaining the URLs to poll. When the status is updated, just update the polling time too.

One thing I would advise is allowing a blank value so the system default can be used for the interval.

Not tricky really but not something I can get to immediately, if you can create a pull request for it, we can review, approve and merge as it sounds reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants