[Newbie] Send alerts to cosmosdb

Hello,
I have configured a Tick Stack, I receive several metrics and I have configured an alert using Chronograf gui.
Now I see chronograf has configured a script that saves alerts in a Influx Database (good!).
I would like to send this data to CosmosDB on Azure (or, if not possible, to a REST endpoint).
Which is the best way to do so?
Thanks in advance,
Mario

Ok I have seen that I need to use post feature of kapacitor