feat: Add option to retry only on status code failure for JSON Query monitors (#5693)#6687
Conversation
…monitors - Add retry_only_on_status_code_failure field to monitor model - Skip retries when JSON query evaluation fails but status code passes - Add UI checkbox for json-query monitors with retries enabled - Add database migration for new field - Update retry logic to distinguish between status code and JSON query failures Fixes louislam#5693
|
Hello and thanks for lending a paw to Uptime Kuma! 🐻👋 |
- Add selectAllMonitorsAria - Add deselectAllMonitorsAria - Add Actions - Add deleteMonitorsMsg - Add noMonitorsPausedMsg - Add noMonitorsResumedMsg Fixes translation test failures
|
Hello @CommanderStorm Could you please review my PR? |
CommanderStorm
left a comment
There was a problem hiding this comment.
@0xsid0703 please only ping me when actually important.
Here is a review, but the code needs some scrubbing around the numeric value (what is that?) and the translation keys
db/knex_migrations/2026-01-15-0000-add-json-query-retry-only-status-code.js
Outdated
Show resolved
Hide resolved
- Refactor retry logic to have separate json-query branch as requested - Remove unrelated numeric value code - Clean up translation keys
Remove translation keys unrelated to retry-only-on-status-code feature
|
@CommanderStorm Thank you for your feedback, it's because I have worked with two issues concurrently. |
|
@0xsid0703 congrats on your first contribution to Uptime Kuma! 🐻 |
Description
Adds a new option for JSON Query monitors to only retry when the HTTP status code check fails, not when the JSON query evaluation fails.
Changes
retry_only_on_status_code_failureboolean field to monitor modelBehavior
Use Case
Useful for monitoring Jenkins jobs or similar APIs where:
Testing
Fixes #5693
Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=158349177