I'm building a notification system that will notify employees on slack when they take an action that triggers a DLP Rule.
The ideal flow I'm trying to get at is:
Employee takes action > Rule triggered > Alert is published to PubSub topic > Triggers Cloud function that renders the slack message and sends it to the user.
The point where I'm stuck is having the API alert center to publish the alert the to the PubSub topic. I have done something like this in the past with the Gmail API, to publish to the topic when an particular account received an email. And there was a watch request to configure the account to publish to the topic.
I looked through the Alert Center API documentation and haven´t found a watch request or anything that does something similar.
Is there a way to achieve this? Or is this just impossible?
I searched through the Google Alert Center API reference and the Alert Center console for any options to configure publishing to a pubsub topic or a webhook.