How to use Custom Event Types #19715
Unanswered
BartZimmo
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm wondering if anyone can help me find documentation on how to implement Custom Event types in a plugin.
I was able to create a new Event type, and it is visible in netbox using the events.py file.
The only info i can find is this: https://netboxlabs.com/docs/netbox/plugins/development/event-types/
`
events.py
from django.utils.translation import gettext as _
from netbox.events import EventType, EVENT_TYPE_KIND_WARNING
EventType(
name='expirystatus',
text=_('ExpiryStatus'),
kind=EVENT_TYPE_KIND_WARNING,
).register()
`
But how can i define when this Event Type needs to be triggered?
I would like to trigger this event every time a field "expiry status" changes.
Beta Was this translation helpful? Give feedback.
All reactions