Skip to content

feat(webhooks): add pluggable adapters, builtin checks, profile integ… - #42

Open
binilsn wants to merge 4 commits into
up-timer-integrationfrom
feature/pluggable-adapters-and-alerts
Open

binilsn wants to merge 4 commits into
up-timer-integrationfrom
feature/pluggable-adapters-and-alerts

Conversation

@binilsn

@binilsn binilsn commented Jul 29, 2026

Copy link
Copy Markdown
Owner

…rations, and server check alerts

  • Add provider column to webhook_endpoints (uptimer/generic/builtin)
  • Create pluggable adapter pattern (BaseAdapter, UptimerAdapter, GenericAdapter)
  • Replace hardcoded /webhooks/uptimer/:token with dynamic /webhooks/:provider/:token
  • Add BuiltinCheckService for proactive health checks without third-party tools
  • Add PerformBuiltinChecksJob scheduled every 30 seconds via recurring.yml
  • Add url column to services for builtin health check targets
  • Make builtin the default provider for new webhook endpoints
  • Add provider selector to webhook endpoint create/edit UI
  • Add Integrations section to Profile page
  • Create server check alert pipeline (auto-alert on down/degraded, auto-resolve on up)
  • Add source column to alerts (log/server_check) to distinguish alert origin
  • Make alert_rule_id nullable on alerts for server check alerts
  • Update README with new features, adapter docs, and API reference
  • Migrate existing UptimerService and UptimerController to adapter pattern

binilsn added 4 commits July 29, 2026 12:49
…rations, and server check alerts

- Add provider column to webhook_endpoints (uptimer/generic/builtin)
- Create pluggable adapter pattern (BaseAdapter, UptimerAdapter, GenericAdapter)
- Replace hardcoded /webhooks/uptimer/:token with dynamic /webhooks/:provider/:token
- Add BuiltinCheckService for proactive health checks without third-party tools
- Add PerformBuiltinChecksJob scheduled every 30 seconds via recurring.yml
- Add url column to services for builtin health check targets
- Make builtin the default provider for new webhook endpoints
- Add provider selector to webhook endpoint create/edit UI
- Add Integrations section to Profile page
- Create server check alert pipeline (auto-alert on down/degraded, auto-resolve on up)
- Add source column to alerts (log/server_check) to distinguish alert origin
- Make alert_rule_id nullable on alerts for server check alerts
- Update README with new features, adapter docs, and API reference
- Migrate existing UptimerService and UptimerController to adapter pattern
…st failures

- Fix Brakeman parse error in dashboard alert banner by extracting severity to variable
- Move uptimer_service_spec to adapters/ directory to fix SpecFilePathFormat
- Add RSpec rule relaxations to .rubocop.yml (AnyInstance, MultipleMemoizedHelpers, etc.)
- Fix checked_at nil passthrough in generic and uptimer adapters
- Refactor job spec to use proper stubs instead of allow_any_instance_of
- Reduce memoized helpers and fix nested groups in request/alert specs
- Remove extra end causing syntax error in job spec
…lth overview

- Add Server Status sidebar link between Services and Doc
- Create ServerStatusController and view with summary cards + table
- Add timeout_seconds and fail_threshold columns to webhook_endpoints for builtin config
- Use configurable timeout from endpoint in BuiltinCheckService
- Auto-deactivate old endpoint when new active one is created
- Add helper methods (uptimer?, generic?, builtin?) to WebhookEndpoint
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

Successfully merging this pull request may close these issues.

1 participant