CueObserve can send two types of Slack alerts:
- Anomaly alerts are sent when an anomaly is detected
- App Monitoring alerts are sent when an anomaly detection job fails
To get these alerts, enter your Slack Bot User OAuth Access Token. To create a Slack Bot User OAuth Access Token, follow the steps outlined in Slack documentation.
- Create a slack app.
- Once you create the app, you will be redirected to your app’s
Basic Information
screen. InAdd features and functionality
, click onBots
. - On the next screen, click on
add a scope
and you will be redirected to OAuth & Permissions page. - On the next screen, go to Scopes section, click on
Add on OAuth Scope
and addfiles:write
andchat:write
permissions, now click onInstall to Workspace
to create theBot User OAuth Token
. - Copy
Bot User OAuth Token
and paste it in the CueObserve Settings screen.
Next, create two channels in Slack. Add the app to these two channels.
- To find your Slack channel's ID, right-click the channel in Slack and then click on
Open channel details
. You'll find the channel ID at the bottom. Copy and paste it in the CueObserve Settings screen. - Click on the
Save
button.
- Make sure you have enabled email alert while installation.
- Add email Id to
Send Email To
input field, If you have to add more than one email Id, make it comma separated in input field as shown below.
CueObserve supports Webhook URL for receiving alert messages. There are two type of alerts :
-
Anomaly alerts, which are sent when an anomaly is detected in data. The response will have json data (as below) and base64 encoded image.
{ "subject": subject, "message": message, "details": details, "AnomalyDefinitionId": anomalyDefId, "AnomalyId": anomalyId, }
-
App Monitoring alerts, which are sent when an anomaly detection job fails. The response will have json data as formatted:
{ "subject": subject, "message": message }
To subscribe to these alerts, configure your Webhook URL in CueObserve settings screen.