brysontyrrell / PatchServer

A self-hosted implementation of an external patch source for Jamf Pro 10.2+
http://patchserver.readthedocs.io/en/latest/
MIT License
67 stars 13 forks source link

Webhooks feature #4

Closed headmin closed 6 years ago

headmin commented 6 years ago

Having an option to send out a Webhook with context would be a great feature to see in PatchServer. Our use specific use-case would be feed the "patch info + context" as event into our centralized event stream processing and monitoring workflows. But in general Webhooks would enable many other use cases as well for the community.

brysontyrrell commented 6 years ago

@headmin - Would the following JSON payload fit the request?

{
    "event": "<event-type>",
    "timestamp": 123456789,
    "software_title": "<title-name>",
    "version:": "<version>",
    "url": "http://<server>/jamf/v1/patch/<id>"
}

event-type would be either new_software_title or new_version.

brysontyrrell commented 6 years ago

Webhooks have been implemented with pull request #7 (v0.7.0).