-
Notifications
You must be signed in to change notification settings - Fork 231
/
notify.sh
executable file
·32 lines (28 loc) · 1.03 KB
/
notify.sh
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
#!/bin/bash
# This is the example script for the shell notification script.
# it shows how to retrive the data in environment variables and the StdIn
echo "----------------------------------------------------"
echo "<-------- STDIN Begin ------->"
while read -r line
do
echo "$line"
done < "${1:-/dev/stdin}"
echo "<--------- STDIN End -------->"
echo "Type: ${EASEPROBE_TYPE}"
echo "----------------------------------------------------"
if [[ ${EASEPROBE_TYPE} == "Status" ]]; then
echo "Title: ${EASEPROBE_TITLE}"
echo "Name: ${EASEPROBE_NAME}"
echo "Status: ${EASEPROBE_STATUS}"
echo "RTT: ${EASEPROBE_RTT}"
echo "TIME: ${EASEPROBE_TIME}"
echo "TIMESTAMP: ${EASEPROBE_TIMESTAMP}"
echo "Message: - ${EASEPROBE_MESSAGE}"
echo "----------------------------------------------------"
fi
echo "${EASEPROBE_JSON}"
echo "----------------------------------------------------"
echo "${EASEPROBE_CSV}"
echo "----------------------------------------------------"
env
echo "----------------------------------------------------"