| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Signed-off-by: Chris (ChrisJr404) <11917633+ChrisJr404@users.noreply.github.com>
|
@ChrisJr404 Thanks for this PR! No blocker but one thought: passing audit_name / model_name into send() the way failures already pass audit_error=? Let me know! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Closes #5865.
Audit failures can already be sent to notification targets, but passes cannot, so there is no way to track successful audits through the notification system without re-running them via the Python API or writing a custom target that only ever sees failures.
This adds an AUDIT_PASS notification event. When a non-blocking or blocking audit runs and returns no failing rows, Scheduler._audit_snapshot now fires AUDIT_PASS in the same place it already fires AUDIT_FAILURE for failing audits. Skipped audits are neither a pass nor a failure, so they don't notify. The event carries the audit name and the model name.
Nothing changes by default. A target only receives these notifications if audit_pass is in its notify_on set, so existing configs behave exactly as before.
Test plan
Checklist