-
Notifications
You must be signed in to change notification settings - Fork 1
/
default-webhook-args.json
55 lines (55 loc) · 1.54 KB
/
default-webhook-args.json
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
{
"channel": "#notifications",
"username": "actor-slack-notification-webhook",
"iconUrl": "https://avatars.githubusercontent.com/u/24586296",
"text": "Apify ${eventType.split('.').map(v => v.replace(/_/g, ' ').toLowerCase()).join(' ')}",
"blocks": [
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Actor ID:* <https://console.apify.com/actors/${actor.id}|${actor.id}>"
},
{
"type": "mrkdwn",
"text": "*Actor name:* ${actor.name}"
},
{
"type": "mrkdwn",
"text": "*Task ID:* ${task ? '<https://console.apify.com/actors/tasks/${task.id}|${task.id}>' : '—'}"
},
{
"type": "mrkdwn",
"text": "*Task name:* ${task ? task.name : '—'}"
},
{
"type": "mrkdwn",
"text": "*Run ID:* <https://console.apify.com/actors/${actor.id}/runs/${eventData.actorRunId}|${eventData.actorRunId}>"
},
{
"type": "mrkdwn",
"text": "*Status:* ${eventType.split('.').pop()}"
},
{
"type": "mrkdwn",
"text": "*Started:* ${resource.startedAt}"
},
{
"type": "mrkdwn",
"text": "*Finished:* ${resource.finishedAt || '—'}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Log:*\n```${runLog.split('\\n').slice(-15).join('\\n')}```"
}
}
],
"linkNames": true,
"unfurlLinks": false,
"unfurlMedia": false
}