Hello,
I am trying to configure a trigger that will alert if files within a specific directory exceed a certain file size, but only after the files have been present for at least 10 minutes.
So far, I can monitor file sizes with vfs.file.size, but I am not sure how to implement the condition that the file must remain larger than the threshold for at least 10 minutes before the trigger goes off. I have used the nodata function and added it to our already existing expression for detecting file sizes larger than a specified amount but it did not work for me for some reason.
Has anyone implemented something similar or could suggest the best approach?
Thank you in advance!
I am trying to configure a trigger that will alert if files within a specific directory exceed a certain file size, but only after the files have been present for at least 10 minutes.
So far, I can monitor file sizes with vfs.file.size, but I am not sure how to implement the condition that the file must remain larger than the threshold for at least 10 minutes before the trigger goes off. I have used the nodata function and added it to our already existing expression for detecting file sizes larger than a specified amount but it did not work for me for some reason.
Has anyone implemented something similar or could suggest the best approach?
Thank you in advance!
And you have a suggested item and its parameters, look it up from docs
Comment