We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
New Monitor
Some services require more complex checks of the response than a simple KEYWORD or REGEX to perform the validation "Status UP" or "Status DOWN".
It would be awesome to be able to allow custom Javascript code to be run against a parsed JSON Object from an HTTP(s) response.
This could be achieved by the creation of a new Monitor "HTTP(s) JSON Custom Function" derived from the "HTTP(s) - Keyword".
In the UI a new text zone to write the custom JavaScript code.
No response
This idea is inspired from the node-red "Function" node
Take for example the following simplified JSON response we typically encounter with the Syncthing API GET /rest/system/status
{ "connectionServiceStatus":{ "tcp://0.0.0.0:22000":{ "error":null }, "dynamic+https://relays.syncthing.net/endpoint":{ "error":null } }, "discoveryStatus":{ "IPv4 local":{ "error":null }, "IPv6 local":{ "error":null } } }
connectionServiceStatus and discoveryStatus can contain multiple error fields to check and this could be easily achieved with custom Javascript code.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
🏷️ Feature Request Type
New Monitor
🔖 Feature description
Some services require more complex checks of the response than a simple KEYWORD or REGEX to perform the validation "Status UP" or "Status DOWN".
It would be awesome to be able to allow custom Javascript code to be run against a parsed JSON Object from an HTTP(s) response.
✔️ Solution
This could be achieved by the creation of a new Monitor "HTTP(s) JSON Custom Function" derived from the "HTTP(s) - Keyword".
In the UI a new text zone to write the custom JavaScript code.
❓ Alternatives
No response
📝 Additional Context
This idea is inspired from the node-red "Function" node
Take for example the following simplified JSON response we typically encounter with the Syncthing API GET /rest/system/status
connectionServiceStatus and discoveryStatus can contain multiple error fields to check and this could be easily achieved with custom Javascript code.
The text was updated successfully, but these errors were encountered: