mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Pause hearbeat checks based on PUSH status #1593
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#1593
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KongGal on GitHub (Nov 28, 2022).
⚠️ 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 on GitHub (Dec 13, 2023):
@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