louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
59.66k stars 5.33k forks source link

Pause hearbeat checks based on PUSH status #2358

Open KongGal opened 1 year ago

KongGal commented 1 year ago

⚠️ Please verify that this feature request has NOT been suggested before.

🏷️ Feature Request Type

API

πŸ”– Feature description

add a push for all monitor types that allow you to control the monitors.
i guess it would pretty much be a PUSH control module where it gives you a Push URL and it have some boxes where you can define status messages it should monitor for and what it should do

Message1 = Stop heartbeat checks / Pause Message2 = Start heartbeat checks / Resume

βœ”οΈ Solution

in my case i have a PUSH monitor that check every 60 sec but the server I'm checking have a 35 min downtime period every day where the server restarts with a pipeline script in Jenkins and it takes about 30 min in total from server stops to it starts again and being able to add in a Webhook event before it stops the server with a status message in the push URL that's connected to a event in the monitor that would pause the checks and again a Webook event when it done restarting that would have another status message in the URL that would be connected to an event on the monitor that will resume it again
such as https://uptime/api/push/vX?status=Stop&msg=OK would pause the monitor https://uptime/api/push/vX?status=Start&msg=OK would Start the monitor

❓ Alternatives

No response

πŸ“ Additional Context

No response

CommanderStorm commented 11 months ago

@KongGal I think what you are really requesting is to pause a monitor based on an api call. I think this can be merged into #118 / resovled by #3854