-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
http(s) - header-query #3568
Comments
It would be nice to check the response headers. This could trigger an alarm when for example, the website doesn't meet the required security headers, |
Here is our contribution guide ^^ |
This comment was marked as resolved.
This comment was marked as resolved.
Cannot reproduce, this issue was never closed. I think implementing this should be slotted after #3919 to save on neeeded effort |
Just chiming in that I went looking for a way to monitor my Zigbee/ethernet bridge today with Kuma, and found the status is added to the HTTP response headers, and the body reads these in javascript.
|
🏷️ Feature Request Type
New Monitor
🔖 Feature description
Following up on #3299, it would be great to have a way of checking HTTP headers, specifically whether the
last-modified
header is less than X hours/days/weeks/whatever old.We would probably be happy with a
last-modified
type that merely checks the date in that specific header isn't older than X days, but I think it makes sense to make this extensible.cc @TheLastProject
✔️ Solution
For our use case, we'd like to be able to do something like this:
However, with
jsonata
(already used forjson-query
) we should be able to do something extensible/generic like this:Which would allow us to use a
jsonata
query to check thelast-modified
header is less than a week old, which is exactly what we wanted :)For a quick stand-alone PoC, see https://gist.github.com/obfusk/fc5e7e4e129c0e4192d8fd6f7aa90f14
❓ Alternatives
No response
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: