caprover
caprover copied to clipboard
NetData Notification Settings Discord Webhook
Is it possible to use a discord webhook for the NetData Notification Settings? If not, would it be possible to add the option like we have for Slack?
@italodeandra As a temporary solution, you can provide a "Slack Webhook URL" as a Discord Webhook URL with /slack on the end.
Discord's backend will respect the Slack syntax.
Nice to know @DeJayDev. Thanks!
@githubsaturn Does it make sense to add that information to the notification settings?
Sure - feel free to open a PR
Hi @italodeandra @DeJayDev, can you please share how to set up notifications for Slack?
I tried calling Slack Webhook using fetch & axios with Pre-Deploy Script but getting ReferenceError
My preDeployFunction:
var preDeployFunction = function (captainAppObj, dockerUpdateObject) {
return Promise.resolve().then(function () {
axios.post(
"WEBHOOK_URL",
{
text: "🚀 Deploying BE...",
}
);
return dockerUpdateObject;
});
};
Thanks