forked from Darkseal/RunningLow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_slackTemplates.ps1
56 lines (53 loc) · 1.64 KB
/
_slackTemplates.ps1
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
# not running template
$service_not_running_template =
@"
{
"channel": "#dev",
"username": "Bloc Alerts",
"text": ":gear: %SERVICE_NAME% not running, starting...",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":gear: Service *%SERVICE_NAME%* not running, please wait while starting :hourglass_flowing_sand: \n> Server: ``%IP_ADDR%``"
}
},
]
}
}
"@
$service_started_template =
@"
{
"channel": "#dev",
"username": "Bloc Alerts",
"text": ":gear: %SERVICE_NAME% successfully started :white_check_mark:",
"blocks": [{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":gear: Service *%SERVICE_NAME%* sucessfully started :white_check_mark:"
}
}]
}
}
"@
$processes_started_template =
@"
{
"channel": "#dev",
"username": "Bloc Alerts",
"text": ":gear: %SERVICE_NAME% started :white_check_mark:",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":gear: Stopped service found \n _Started: *%SERVICE_NAME%*_ \n> %PROCESSES_TOTAL% processes discovered \n> %PROCESSES_RUNNING% processes already running \n> %PROCESSES_STARTED% process started"
}
},
]
}
}
"@