Core
Using the NPM Core Package
AbyssMonitorCore.setConfig({
// Your Application Monitor API Key
applicationApiKey: "application-monitor-api-key",
// Your Application ID
applicationId: "application-id",
// Name showed on alerts
applicationName: 'My Super Application - API',
// This method should return an URl to post Alert
// You can return null/undefined if you want to not send alert
// Please check complete typing of payload on the Core Package
async getWebhookUrl(payload) {
return "my-discord-webhook-url";
},
// Can be found on your AbyssMonitor dashboard
// It's required to publish log remotely
secretPublishToken: "secret-publish-token",
});
// This method will enable automatic retry on failed http request to AbyssMonitor API
AbyssMonitorCore.enableAxiosRetry();Standalone
Last updated