-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat: json-query monitor added #3253
Conversation
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you go into if this resolves #2431 ?
(if yes: add Resolves #2431
to the description)
Another issue: Please go into
|
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
…ryDescription element to fix `a` tags Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
I have just seen that this was the only option when searched for Now, I have switched to jsonata (Also: github and npm), I think this one is a great choice since it has more features, etc. |
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
Two minor change-requests which came up in other issues:
|
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
My editor removed some white spaces at the end of lines ;) Tests are getting 429 (rate limit) errors from GitHub and need retry |
Co-authored-by: Frank Elsinga <frank@elsinga.de>
* Add nostr DM notification provider * require crypto for node 18 compatibility * remove whitespace Co-authored-by: Frank Elsinga <frank@elsinga.de> * move closer to where it is used * simplify success or failure logic * don't clobber the non-alert msg * Update server/notification-providers/nostr.js Co-authored-by: Frank Elsinga <frank@elsinga.de> * polyfills required for node <= 18 * resolve linter warnings * missing comma --------- Co-authored-by: Frank Elsinga <frank@elsinga.de>
Can you please confirm my last Merge from master? I got some conflicts that I resolved |
Oh, I'm apologize, I forgot I shouldn't rebase the master branch. Let me fix it. |
Again me: |
@louislam I think I have to rebuild the package lock in this branch since it got conflicts |
# Conflicts: # package-lock.json # server/database.js # src/lang/en.json # src/pages/EditMonitor.vue
The Expected Value field is only accepting one value, but if i have multiple values, it fails and states: But i want it to be up, at the values 0&1, but down at the Value 2 or else. |
Have you tried using expressions in jsonata? |
It would be great if you can change value For example up and ok will be converted to ok |
Thank you for the hint, after a bit try and error i found the solution to my problem:
Thank you for your fast response! |
Hi all, i would like to propose a feature for this, where if you get an unexpected response, and it marks the item as down, that it stores the entire JSON object so you can retrospectively look at what the error was. I can see that it tells me what the response it got was which is fine, but the error message itself is stored in another JSON key in alot of things. the response typically looks like this |
please dont necropost on merged issues and have instead search for the respective issue and subscribe there ^^ |
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
Resolves #2431
Resolves #3163
Resolves #3299
Adding json query monitor to add json query monitor and comparing json path value with expected value
Query should be according to json-query from jsonata docs see: http://docs.jsonata.org/simple
Type of change
Please delete any options that are not relevant.
Checklist
(including JSDoc for methods)
Screenshots (if any)