Skip to content

add on-demand Check Now for monitors (v1.1)#3

Merged
crleonard merged 3 commits intomainfrom
feat/check-now-trigger
Apr 22, 2026
Merged

add on-demand Check Now for monitors (v1.1)#3
crleonard merged 3 commits intomainfrom
feat/check-now-trigger

Conversation

@crleonard
Copy link
Copy Markdown
Owner

Adds POST /checks/{id}/trigger API endpoint and a "Check now" button

  • monitor.Service.RunNow() evaluates a check synchronously and persists the result
  • httpapi.Triggerer interface keeps the HTTP layer decoupled from the monitor package
  • Dashboard trigger action redirects back to the detail page after firing
  • 7 new tests covering healthy, down, not-found, no-triggerer, and dashboard redirect cases

Adds POST /checks/{id}/trigger API endpoint and a "Check now" button
@crleonard crleonard added the enhancement New feature or request label Apr 22, 2026
Updated to resolve deprication warning
@crleonard crleonard merged commit 2f092e5 into main Apr 22, 2026
1 check passed
@crleonard crleonard deleted the feat/check-now-trigger branch April 22, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant