Hi, I am new to Distill, but tried other tools for my usecase (which didnt work as I wanted).
I want to monitor a change on a webpage. The webpage quite often as an error and shows a 502 bad gateway error. In this case, I dont want to receive an alert (which was unfortunately the case for the other tools). I only want to receive an alert, if the webpage is accesible and my area of interest on that page changes.
Any approach for that with Distill? Thank you!
@michi65 the most common way to use distill is by visually selecting content from the monitored page. when doing so, each monitor looks for a specific element in the page. if that element is not found, a SELECTION_EMPTY
error is logged instead of accepting that as a change.
check out What is Visual Selector? – Distill
distill will not find the element it was looking for and log an error instead if a specific part of the page is monitored.
if you need to monitor the full page instead, a solution is to validate the content. the page’s content can be validated by using a macro and using assert
or panic
functions to raise error when a certain condition is met.
also note that cloud monitors in distill have built in validators that error out the check if an error page is detected.
let me know if you have any other questions. cheers!