You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/generate_incident.sh
+4-19Lines changed: 4 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,6 @@
1
1
#!/bin/bash
2
2
set -e
3
3
4
-
# Check if pd_token variable is set
5
-
if [ -z"$pd_token" ];then
6
-
echo"Warning: pd_token is not set. For more information, see https://developer.pagerduty.com/docs/ZG9jOjExMDI5NTUx-authentication."
7
-
echo"The pd_token is needed to automatically retrieve the incident after creating it."
8
-
echo"You can still search in the service directory for the created incident, but setting the pd_token ENV in the future will facilitate getting the created incident id."
9
-
echo
10
-
echo
11
-
fi
12
-
13
4
# Define the mapping of alert names to titles
14
5
# Add more mappings as needed: for the standard service, we should not need to go by title but by the `alertname` field instead.
15
6
declare -A alert_mapping=(
@@ -25,7 +16,7 @@ print_help() {
25
16
foralert_namein"${!alert_mapping[@]}";do
26
17
echo -n "$alert_name, "
27
18
done
28
-
echo
19
+
echo
29
20
}
30
21
# Check if the correct number of arguments is provided
0 commit comments