-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslack.yaml
More file actions
65 lines (60 loc) · 1.68 KB
/
slack.yaml
File metadata and controls
65 lines (60 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Slack Web API Monitoring Configuration
# Monitors key Slack Web API endpoints for schema drift
#
# Prerequisites:
# - Slack Bot Token (xoxb-...) with appropriate scopes
# - Set SLACK_BOT_TOKEN environment variable or use Rumbliq credential vault
#
# Docs: https://api.slack.com/methods
monitors:
- name: "Slack - Auth Test"
url: "https://slack.com/api/auth.test"
method: POST
headers:
Authorization: "Bearer ${SLACK_BOT_TOKEN}"
Content-Type: "application/json"
interval: 300
alertOnDrift: true
severity: critical
timeout: 10000
expectedStatus: 200
- name: "Slack - List Conversations"
url: "https://slack.com/api/conversations.list?limit=1"
method: GET
headers:
Authorization: "Bearer ${SLACK_BOT_TOKEN}"
interval: 300
alertOnDrift: true
severity: critical
timeout: 10000
expectedStatus: 200
- name: "Slack - List Users"
url: "https://slack.com/api/users.list?limit=1"
method: GET
headers:
Authorization: "Bearer ${SLACK_BOT_TOKEN}"
interval: 600
alertOnDrift: true
severity: warning
timeout: 10000
expectedStatus: 200
- name: "Slack - Get Conversation Info"
url: "https://slack.com/api/conversations.info?channel=${SLACK_CHANNEL_ID}"
method: GET
headers:
Authorization: "Bearer ${SLACK_BOT_TOKEN}"
interval: 600
alertOnDrift: true
severity: warning
timeout: 10000
expectedStatus: 200
- name: "Slack - Team Info"
url: "https://slack.com/api/team.info"
method: GET
headers:
Authorization: "Bearer ${SLACK_BOT_TOKEN}"
interval: 900
alertOnDrift: true
severity: info
timeout: 10000
expectedStatus: 200