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

Add way to set monitoring interval and contact delay on monitors via cli #18

Open
Yggdrasil opened this issue Apr 23, 2020 · 3 comments

Comments

@Yggdrasil
Copy link

Hi @bitfield,

When I create monitors manually I like to set the following features:

  • Set the monitoring interval to 1 minute instead of the default 5.
  • Add a delay to certain contacts. E.g. Pagerduty: If down for 5 minutes, trigger once.

Would it be possible to add parameters to the CLI ensure and new commands to apply those settings?

@bitfield
Copy link
Owner

bitfield commented Apr 23, 2020

Hey @Yggdrasil! Thanks for opening the issue, much appreciated.

The monitoring interval is something we should definitely support, in both the library and the CLI tool. I've opened this as #19.

A delay before notifying a specific contact is not something that I can see support for in the Uptime Robot API, but if I'm wrong about that, let me know. There is provision for a threshold and recurrence value, for Pro Plan users, to have the monitor wait X minutes before notifying (to all contacts), and optionally re-notify every Y minutes: https://blog.uptimerobot.com/new-feature-advanced-notification-options-for-the-pro-plan/

I've opened issue #20 to add support for these.

Let me know if this covers all your requirements (or doesn't!)

@Yggdrasil
Copy link
Author

Thanks @bitfield. Much appreciated.

That threshold and recurrence is indeed when I meant. I didn't realize that's what they were called. I wouldn't dream of asking you to support features that are not present in Uptimerobot itself. ;)

@bitfield
Copy link
Owner

Not a problem. I'll get to work on those!

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

No branches or pull requests

2 participants