Commit Graph

42 Commits (aee31edd73bb925cc686b98a1eb16e321fe26c66)

Author SHA1 Message Date
jakevis 6ba954866e
fix: skipErrorChangeNotification drops the DOWN notification when gracePeriod is set
With `skipErrorChangeNotification: true`, a notification was treated as an
"error reason change" whenever the incident had not started in the current
run:

  currentIncident.start[0] !== currentTimeSecond

That holds for the very first DOWN notification too when `gracePeriod` is
set, because that one is sent `gracePeriod` minutes after the incident
started. So with both options enabled no DOWN notification was sent at all,
while the UP notification still was.

Work out whether this is the first notification of the incident (sent
immediately without a grace period, or when the grace period is met) and
only skip the ones after it. Behaviour without `gracePeriod`, or without
`skipErrorChangeNotification`, is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-19 10:10:10 -08:00
lyc8503 a5f65a7943 feat(worker): check all targets in parellel, reduces ~15% cpu time usage in test, also try to a fix rare race condition 2026-01-19 00:52:32 +08:00
lyc8503 3de3640d17 feat: D1 upgrade: deployment and migration process DONE! 2026-01-03 23:06:32 +08:00
lyc8503 e050065a3c [WIP] workers works! (lol) pages+migration todo 2025-12-31 22:19:29 +08:00
lyc8503 45d86424b2 [WIP] terraform cloudflare provider v5 works! more performance/migration/deployment work todo 2025-12-30 23:19:18 +08:00
lyc8503 ee2d23f151 feat: add default UA 2025-11-06 01:02:29 +08:00
lyc8503 70ad2e8677 feat: make cooldown optional and remove it from simple config 2025-11-05 23:10:18 +08:00
lyc8503 e87e350d6d feat: skip error change notification option 2025-11-05 01:06:21 +08:00
lyc8503 e757e1b970 Global ping as check proxy support (#147)
* WIP: http

* improve error handling

* tcp monitoring looks good

* fix globalping bugs and improve logs

* add globalping param

* looks good, add real call to globalping, todo fallback

* stupid JS, forgot bind this

* feat: add globalping city

* run prettier

* fix no magic

* fix missing country in TCP

* update config template
2025-10-29 22:18:39 +08:00
Steven Crocker 4b24ad38a2
Add webhook support to notification property in config (#143)
* Add basic webhook option to workerConfig.notification as alternative to apprise

* Add uptime.config.ts example for webhook option

* Removed trailing commas from newly added types for consistency

* Add ability to customize webhook body

* use template

---------

Co-authored-by: lyc8503 <me@lyc8503.net>
2025-10-15 20:11:32 +08:00
lyc8503 65408d4962 fix: incident header margin, run prettier 2025-09-21 15:28:59 +08:00
keito 5769a52f0c
fix: improve types for callback-related config (#135)
* fix: allow partial callbacks in config types

* fix: allow non-async callback functions in config types

* fix: specify type of monitor argument in callback type

* fix: use generics type for env argument in callback type
2025-08-07 18:47:19 +08:00
lyc8503 8a097698be Merge branch 'main' of https://github.com/lyc8503/UptimeFlare 2025-05-13 16:13:45 +08:00
lyc8503 813ec1ab96 fix #109: kill DO to avoid extra usage 2025-05-13 16:13:35 +08:00
Bennet Gallein a6c8eb6e12
maintenance mode (#101)
* feat: move types

* feat: add maintenance alert

* feat: move to config/base class to have fallback values on missing exports

* fix: wrong import for types

* Revert "fix: wrong import for types"

This reverts commit ca2b2e3a68.

* Revert "feat: move to config/base class to have fallback values on missing exports"

This reverts commit 9932ea2590.

* fix: imports

* chore: formatting

* fix: handle filtering for global status

* fix: pass props

* fix: ignore active maintenances when sending notifications

* fix: mark as warning when monitor is in maintenance

* fix: title width & warning icon

* fix: remove accordeons again

* alert config/style changes, worker code improve

* update example config

* update example config

* set monitors to be optional

---------

Co-authored-by: lyc8503 <me@lyc8503.net>
2025-05-01 01:09:53 +08:00
lyc8503 4bcf4173ea misc: run prettier 2025-04-19 21:50:43 +08:00
lyc8503 f02aef8d00 DurableObject remote checker, binding TODO 2025-04-14 02:12:06 +08:00
lyc8503 6a7effe668 WIP: check proxy on pages 2025-04-12 22:20:33 +08:00
lyc8503 8b07dfe30e SHOULD WORK: worker support proxy 2025-04-11 01:29:46 +08:00
lyc8503 9bc5deb99d feat #88 notification blacklist 2025-04-07 00:50:16 +08:00
lyc8503 e448e95909
Remove 90-day history (not used) to avoid CPU limit exceed on free tier 2025-03-24 20:55:49 +08:00
lyc8503 dcc2dbb278 remove old incident, keep history only for 90d 2024-06-30 21:54:57 +08:00
lyc8503 0eb03ebfff use apprise for better notification & fix callback bug & improve log 2024-05-20 14:18:08 +08:00
lyc8503 8102258e3b add logging, use external link 2024-03-18 17:01:58 +08:00
Eric Wang 4963a4815a fix: duplicate account_id in actions, typo fix 2024-03-18 08:26:20 +08:00
Eric Wang 0c6556eda9 feat: add notify telegram & bark, and some minor fixes 2024-03-18 00:06:31 +08:00
lyc8503 868f943f93 fix bug in record interval 2024-01-30 14:24:28 +08:00
lyc8503 9bdeec90f2 better callbacks, fix config leak 2023-12-09 14:59:59 +08:00
lyc8503 759a0f6159 feat: geo-specific check 2023-12-08 15:19:38 +08:00
lyc8503 ccbb48b040 fix: downtime calculation 2023-11-19 15:05:03 +08:00
lyc8503 76402693c3 worker tcp ping workaround 2023-11-19 00:54:12 +08:00
lyc8503 9a390c31fe format & add version 2023-11-06 12:19:33 +08:00
lyc8503 87611700c3 format code and no semi 2023-11-06 00:51:41 +08:00
lyc8503 eba65bd654 format code 2023-11-06 00:38:30 +08:00
lyc8503 6157bc0879 add tcp timeout, fix worker stuck 2023-10-28 16:02:22 +08:00
lyc8503 4817fef547 header responsive update, fix worker tcp read 2023-10-28 01:38:21 +08:00
lyc8503 7e694fd9b7 add advanced checks 2023-10-23 15:29:27 +08:00
lyc8503 0ac0f2e99a fix a stupid bug, please blame on vsc 2023-10-20 02:25:24 +08:00
lyc8503 93c069c419 lastIncident logic improve & index error msg 2023-10-20 02:08:56 +08:00
lyc8503 1f4900b143 disable fetch cache 2023-10-17 01:11:28 +08:00
lyc8503 f9212c88a6 wip: frontend header & overall status 2023-10-15 02:00:29 +08:00
lyc8503 cdd43685f2 wip: worker & pages 2023-10-14 15:21:52 +08:00