I'm trying to make a webhook which only fires, if my backup has been made properly (success
, without errors). Is that possible?
backupNg.runJob
does fire, but at all actions. Are there a better method hook
I can use? I'm not been able to track a more suitable method, yet.
Have I missed a detail, or is that not possible right now?
The backup-reports
allows me to device the runId
, but I'd like to have a webhook even every-time things go as planned (as I've like to integrate the reporting into the service from healthchecks.io
).
Another workaround would be to have the backup job fire a postpone script or similar, allowing me to customize it (if the proper amount of data was available), or have a postpone script for both success
and failure
for each job.
Healthcheck does support filtering of the payload received, but only for emails, though. And I'd like to get it working with webhooks, if possible.