Feature request: webhooks

Hi,

We are working on DevOps automated quality reports with QSDA Pro.
We have defined a webhook in Qlik Cloud to receive a notification on every app publish.
As the webhook is triggered, we will use the Qlik automation to trigger QSDA Pro.
We would like to define another webhook in QSDA Pro when the analysis is complete, in order to trigger the API export of all the metrics and generate a summarized and scored report for the developers.

Do you have plans to provide notifications on analysis completion? (with a simple payload about what just finished)
It can be a webhook or an hardcoded target URL in the config for us, that would work too.

Kind regards,
Armand

Interesting idea. Let me do some investigation.

-Rob

1 Like

@armandfrigo
The webhook is available in release 2.4. There is a new property in the POST /collectors request:

"replyEndpoint": "http://myhost/myapp/webhook"

When the collection and analysis is complete, either normal or by error, the replyEndpoint will receive a POST CollectorCompleteResponse content that looks like this:

{
  "CollectorId":"b40de0e0-9144-4f85-b214-28ec3e89b5ca",
  "Status":"Ready",
  "ErrorMessage":"",
  "ReplyTimestamp":"2023-02-24T12:23:49.9487975-08:00"
}

A couple of TODO items remain:

  1. Show the CollectorCompleteResponse in the API doc.
  2. Make pending replyEndpointRequests survive a QSDA service restart. Currently incomplete requests will be lost if the services are restarted.

Let me know how this works for you.

-Rob

Hi Rob, this is amazing.
I praise your capacity to keep track of feature requests and deliver only a few months later!
I will have to double check how often QSDA does restart, but I think this is absolutely fine for now.
Kind regards,
Armand