For Json Query, only retry for status code #4028

Closed
opened 2026-02-28 03:48:43 -05:00 by deekerman · 0 comments
Owner

Originally created by @felipecrs on GitHub (Mar 12, 2025).

N/A

🏷️ Feature Request Type

Change to existing monitor

🔖 Feature description

When using Json Query monitor type, it would be very useful to have an option to only retry if the status code check doesn't pass.

It the status code check passes, then no retries are needed and the query can be executed (and should reflect its status immediately).

This is useful for monitoring Jenkins jobs like:

$ curl -fsSL $JENKINS_URL/job/myjob/lastCompletedBuild/api/json?tree=result
{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowRun","result":"SUCCESS"}

And I would not like to mark the monitor as red if the Jenkins server itself is down momentarily, but I also wouldn't like to delay the moment where the job result was actually changed from SUCCESS to something else.

✔️ Solution

So, maybe a new option here like:

  • Only retry if status code check fails

Image

Alternatives

No response

📝 Additional Context

No response

Originally created by @felipecrs on GitHub (Mar 12, 2025). ### 📑 I have found these related issues/pull requests N/A ### 🏷️ Feature Request Type Change to existing monitor ### 🔖 Feature description When using Json Query monitor type, it would be very useful to have an option to only retry if the status code check doesn't pass. It the status code check passes, then no retries are needed and the query can be executed (and should reflect its status immediately). This is useful for monitoring Jenkins jobs like: ```console $ curl -fsSL $JENKINS_URL/job/myjob/lastCompletedBuild/api/json?tree=result {"_class":"org.jenkinsci.plugins.workflow.job.WorkflowRun","result":"SUCCESS"} ``` And I would not like to mark the monitor as red if the Jenkins server itself is down momentarily, but I also wouldn't like to delay the moment where the job result was actually changed from SUCCESS to something else. ### ✔️ Solution So, maybe a new option here like: - [ ] Only retry if status code check fails ![Image](https://github.com/user-attachments/assets/457c8e8e-2114-40c2-a345-2da1efc57296) ### ❓ Alternatives _No response_ ### 📝 Additional Context _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#4028
No description provided.