caprover icon indicating copy to clipboard operation
caprover copied to clipboard

NetData Notification Settings Discord Webhook

Open italodeandra opened this issue 4 years ago • 4 comments

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 avatar Aug 27 '21 18:08 italodeandra

@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.

DeJayDev avatar Sep 20 '21 21:09 DeJayDev

Nice to know @DeJayDev. Thanks!

@githubsaturn Does it make sense to add that information to the notification settings?

italodeandra avatar Sep 20 '21 21:09 italodeandra

Sure - feel free to open a PR

githubsaturn avatar Sep 20 '21 22:09 githubsaturn

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

Screenshot 2022-06-10 at 5 17 33 AM

My preDeployFunction:

var preDeployFunction = function (captainAppObj, dockerUpdateObject) {
  return Promise.resolve().then(function () {
    axios.post(
      "WEBHOOK_URL",
      {
        text: "🚀 Deploying BE...",
      }
    );

    return dockerUpdateObject;
  });
};

Thanks

utsavdotpro avatar Jun 09 '22 23:06 utsavdotpro