-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (67 loc) · 2.85 KB
/
index.html
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Slack Alert Template</title>
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles/index.css">
</head>
<body>
<h1>Create Slack Alert Template</h1>
<div class="input-container" id="webhook-inputs">
<h3>Webhook</h3>
<div class="input-group">
<label>Username</label>
<input name="username" type="text" placeholder="example: som-error" value="icarus-error" />
</div>
<div class="input-group">
<label>Emoji</label>
<input name="emoji" type="text" placeholder="example: :alert:" value=":alert:" />
</div>
<div class="input-group">
<label>Slack Channel</label>
<input name="slackChannel" type="text" placeholder="https://hooks.slack.com/XXX" />
</div>
<div class="input-group">
<label>Message</label>
<input name="message" type="text" value="#description#" />
</div>
<div class="input-group">
<label>SLACK ID</label>
<input name="slackId" type="text" placeholder="UAX2EAZ4J" value="UAX2EAZ4J" />
</div>
<div class="input-group">
<label>Module / Path</label>
<input name="path" type="text" />
</div>
<textarea name="result" id="webhook-result" cols="30" rows="10" placeholder="result will be here"></textarea>
</div>
<div class="input-container" id="trigger-inputs">
<h3>Trigger</h3>
<div class="input-group">
<label>Function</label>
<input name="function" type="text" placeholder="example: count" value="count" />
</div>
<div class="input-group">
<label>Threshold</label>
<input name="threshold" type="text" placeholder="example: 10" value="10" />
</div>
<div class="input-group">
<label>Range</label>
<input name="range" type="text" placeholder="example: 10m" value="10m" />
</div>
<div class="input-group">
<label>Query</label>
<input name="query" type="text" placeholder="input query here" value="" />
</div>
<div class="input-group">
<label>Log File</label>
<input name="logFile" type="text" placeholder="example: /var/etc/error.log" value="" />
</div>
<textarea name="trigger-result" id="trigger-result" cols="30" rows="10" placeholder="result will be here"></textarea>
</div>
</body>
<script defer src="./scripts/createWebhookResult.js"></script>
<script defer src="./scripts/createTriggerResult.js"></script>
<script defer src="./scripts/index.js"></script>
</html>