Include more context in Event Rules #14896
Labels
status: blocked
Another issue or external requirement is preventing implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.7.0
Feature type
Change to existing functionality
Proposed functionality
When triggering a Python script using Event Rule, I'd like to have access to more context, just like Webhooks have. Currently the script only gets the
data
object. Webhooks also have:Use case
I want to log the
username
to have an audit trail. I also want to log whether the script was run manually or by an event rule.I want to use the
snapshot
data to build more complex conditions into the script. For example, the event rule triggers on every device update, and the script updates my monitoring system. But I only want it to run if certain key fields were changed, like the name or status. Because other fields like airflow are irrelevant for monitoring.Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: