Remove Documents in Monitor Trigger

Hi all,

I am writing a painless code snippet for when to trigger an alert based on a monitor searching for Java exceptions. This then sends to an action where an email is sent.

There are some Java exceptions I don’t want to be sent in a trigger message. Is there a way to remove documents containing those exceptions in ctx.results ?