CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 19:58:15 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/rabbitstack/fibratus.git
etag: W/"82c44143ff090bad9bcb1226bd7389c1"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=xIJvsvg7JgcnMjJ8KRtJFa7sHbe93hroUv109FRwXhraqxFrUBlolTnAYzjs27bOgbxIlU3G20tqsJE8vziON7APXkkH5uaD2vtRzOykYq0i7Y2Sl0K1GovKoPRerEffXF%2BfFFvHv47kKx68h3JM9GTMB3gCLJT3gcH2GwTiX3IgVdgvFue5XCFosZ6%2F%2BteAhzq2N9RTYfJlObMh9p7Lk2jG4ZR3rDumKNRKcxsZ8CrWe8GMAHJi%2B7mnY4%2FS8dYG5oh60QL%2Bkgt96C8rP8t97Q%3D%3D--Wfb18iZNk6TyVqtE--OWSfn9FHl0NhaTE6yJS8tQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2015795819.1753646294; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 19:58:14 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 19:58:14 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DF5E:290E4F:7E36B6:A5B10A:688684D6
refactor(alertsenders/mail): Move template rendering to sender · rabbitstack/fibratus@1cab108 · GitHub
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/config.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/mail.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/renderer.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/renderer_test.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/template.go
Copy file name to clipboardExpand all lines: pkg/config/schema_windows.go
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit 1cab108
committed
refactor(alertsenders/mail): Move template rendering to sender
HTML templates are more likely to exclusively be used
by the mail sender. For this purpose, a new config flag
is defined that determines if the alert is sent with
HTML template or plain text. Alert structure is augmented
with labels and description fields to make it compatible
with the same fields available in the filter config.1 parent ad736c5 commit 1cab108Copy full SHA for 1cab108
File tree
Expand file treeCollapse file tree
9 files changed
+78
-57
lines changedFilter options
- configs
- pkg
- alertsender
- mail
- config
- filter/action
Expand file treeCollapse file tree
9 files changed
+78
-57
lines changed+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 |
| |
60 | 63 |
| |
61 | 64 |
| |
|
+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 |
| |
90 | 96 |
| |
91 | 97 |
| |
|
pkg/alertsender/mail/config.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/config.go+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| |||
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
40 |
| - | |
| 41 | + | |
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
| |||
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 |
| |
53 | 57 |
| |
54 | 58 |
| |
| |||
61 | 65 |
| |
62 | 66 |
| |
63 | 67 |
| |
| 68 | + | |
64 | 69 |
|
pkg/alertsender/mail/mail.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/mail.go+20-4Lines changed: 20 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 |
| |
53 | 57 |
| |
54 | 58 |
| |
55 | 59 |
| |
56 | 60 |
| |
57 | 61 |
| |
58 |
| - | |
| 62 | + | |
59 | 63 |
| |
60 | 64 |
| |
61 | 65 |
| |
62 | 66 |
| |
63 |
| - | |
64 |
| - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
65 | 81 |
|
pkg/alertsender/renderer/renderer.go renamed to pkg/alertsender/mail/renderer.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/renderer.go+7-9Lines changed: 7 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
26 | 25 |
| |
27 | 26 |
| |
28 | 27 |
| |
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
36 | 35 |
| |
37 |
| - | |
38 | 36 |
| |
39 | 37 |
| |
40 | 38 |
| |
41 | 39 |
| |
42 | 40 |
| |
43 |
| - | |
44 | 41 |
| |
45 | 42 |
| |
46 | 43 |
| |
47 | 44 |
| |
48 | 45 |
| |
| 46 | + | |
49 | 47 |
| |
50 | 48 |
| |
51 | 49 |
| |
| |||
56 | 54 |
| |
57 | 55 |
| |
58 | 56 |
| |
59 |
| - | |
| 57 | + | |
60 | 58 |
| |
61 | 59 |
| |
62 | 60 |
| |
|
pkg/alertsender/renderer/renderer_test.go renamed to pkg/alertsender/mail/renderer_test.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/renderer_test.go+16-18Lines changed: 16 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 | 24 |
| |
26 | 25 |
| |
27 | 26 |
| |
| |||
37 | 36 |
| |
38 | 37 |
| |
39 | 38 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| |||
240 | 241 |
| |
241 | 242 |
| |
242 | 243 |
| |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
| 244 | + | |
| 245 | + | |
248 | 246 |
| |
249 | 247 |
| |
250 | 248 |
| |
|
pkg/alertsender/renderer/template.go renamed to pkg/alertsender/mail/template.go
Copy file name to clipboardExpand all lines: pkg/alertsender/mail/template.go+12-14Lines changed: 12 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 |
| - | |
| 78 | + | |
| 79 | + | |
80 | 80 |
| |
81 |
| - | |
82 |
| - | |
| 81 | + | |
| 82 | + | |
83 | 83 |
| |
84 |
| - | |
85 |
| - | |
| 84 | + | |
| 85 | + | |
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
| 89 | + | |
89 | 90 |
| |
90 | 91 |
| |
91 | 92 |
| |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
| 93 | + | |
97 | 94 |
| |
98 | 95 |
| |
99 | 96 |
| |
| 97 | + | |
100 | 98 |
| |
101 | 99 |
| |
102 | 100 |
| |
| |||
109 | 107 |
| |
110 | 108 |
| |
111 | 109 |
| |
112 |
| - | |
| 110 | + | |
113 | 111 |
| |
114 | 112 |
| |
115 | 113 |
| |
|
pkg/config/schema_windows.go
Copy file name to clipboardExpand all lines: pkg/config/schema_windows.go+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
| 56 | + | |
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
|
+6-10Lines changed: 6 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 | 24 |
| |
26 | 25 |
| |
27 | 26 |
| |
| |||
49 | 48 |
| |
50 | 49 |
| |
51 | 50 |
| |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
| 55 | + | |
54 | 56 |
| |
55 |
| - | |
| 57 | + | |
56 | 58 |
| |
57 | 59 |
| |
58 | 60 |
| |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
| 61 | + | |
67 | 62 |
| |
68 | 63 |
| |
69 | 64 |
| |
70 | 65 |
| |
71 | 66 |
| |
| 67 | + | |
72 | 68 |
| |
73 | 69 |
|
You can’t perform that action at this time.
0 commit comments