blob: 80d3676ffee59c973c3ece16fc848032d7d83d95 (
plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Alert integration settings form default state should match the default snapshot 1`] = `
<div>
<p>
<gl-sprintf-stub
message="Action to take when receiving an alert. %{docsLink}"
/>
</p>
<form>
<gl-form-group-stub
class="gl-pl-0"
labeldescription=""
optionaltext="(optional)"
>
<gl-form-checkbox-stub
checked="true"
data-qa-selector="create_incident_checkbox"
id="2"
>
<span>
Create an incident. Incidents are created for each alert triggered.
</span>
</gl-form-checkbox-stub>
</gl-form-group-stub>
<gl-form-group-stub
class="col-8 col-md-9 gl-px-6"
label-for="alert-integration-settings-issue-template"
label-size="sm"
labeldescription=""
optionaltext="(optional)"
>
<label
class="gl-display-inline-flex"
for="alert-integration-settings-issue-template"
>
Incident template (optional).
<gl-link-stub
href="/help/user/project/description_templates#create-an-issue-template"
target="_blank"
>
<span
class="gl-font-weight-normal gl-pl-2"
>
Learn more.
</span>
</gl-link-stub>
</label>
<gl-collapsible-listbox-stub
block="true"
category="primary"
data-qa-selector="incident_templates_dropdown"
headertext=""
icon=""
id="alert-integration-settings-issue-template"
items="[object Object]"
noresultstext="No results found"
placement="left"
positioningstrategy="absolute"
resetbuttonlabel=""
searchplaceholder="Search"
selected="selecte_tmpl"
showselectallbuttonlabel=""
size="medium"
toggletext=""
variant="default"
/>
</gl-form-group-stub>
<gl-form-group-stub
class="gl-pl-0 gl-mb-5"
labeldescription=""
optionaltext="(optional)"
>
<gl-form-checkbox-stub
data-qa-selector="enable_email_notification_checkbox"
id="3"
>
<span>
Send a single email notification to Owners and Maintainers for new alerts.
</span>
</gl-form-checkbox-stub>
</gl-form-group-stub>
<gl-form-group-stub
class="gl-pl-0 gl-mb-5"
labeldescription=""
optionaltext="(optional)"
>
<gl-form-checkbox-stub
checked="true"
id="4"
>
<span>
Automatically close associated incident when a recovery alert notification resolves an alert
</span>
</gl-form-checkbox-stub>
</gl-form-group-stub>
<gl-button-stub
buttontextclasses=""
category="primary"
class="js-no-auto-disable"
data-qa-selector="save_changes_button"
icon=""
size="medium"
type="submit"
variant="confirm"
>
Save changes
</gl-button-stub>
</form>
</div>
`;
|