1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add trigger_webhooks() to JobResult

This commit is contained in:
jeremystretch
2023-02-28 16:21:01 -05:00
committed by Jeremy Stretch
parent a8c331f88a
commit 4de64d783e
3 changed files with 56 additions and 12 deletions

View File

@@ -1,8 +1,16 @@
from django.contrib.contenttypes.models import ContentType
# Webhook content types
# Webhooks
HTTP_CONTENT_TYPE_JSON = 'application/json'
WEBHOOK_EVENT_TYPES = {
'create': 'created',
'update': 'updated',
'delete': 'deleted',
'job_start': 'job_started',
'job_end': 'job_ended',
}
# Dashboard
DEFAULT_DASHBOARD = [
{