|
81 | 81 | "actions": [
|
82 | 82 | {
|
83 | 83 | "id": "<%= idgen('action-teams', server.name, agent.index) %>",
|
84 |
| - "name": "Notify Teams Channel", |
| 84 | + "name": "Notify Appinfra Teams Channel", |
85 | 85 | "destination_id": "appinfra-msteams",
|
86 | 86 | "message_template": {
|
87 | 87 | "source": "{ \"text\": \"Monitor {{ctx.monitor.name}} just entered alert status. Please investigate the issue.\n - Trigger: {{ctx.trigger.name}}\n - Severity: {{ctx.trigger.severity}}\n - Period start: {{ctx.periodStart}}\n - Period end: {{ctx.periodEnd}}\" }",
|
|
118 | 118 | {
|
119 | 119 | "$$OMIT": "<%= !serverTag('wildfire') || !serverTag('nonproduction') ? 'true' : 'false' %>",
|
120 | 120 | "id": "<%= idgen('action-nonprod-wf', server.name, agent.index) %>",
|
121 |
| - "name": "notify", |
| 121 | + "name": "Notify Wildfire Nonprod Teams Channel", |
122 | 122 | "destination_id": "wf-nonprod-msteams",
|
123 | 123 | "message_template": {
|
124 |
| - "source": "{\"text\": \"No logs received from <%= server.name %> between {{ctx.periodStart}} and {{ctx.periodEnd}}\"}", |
| 124 | + "source": "{\"text\": \"Monitor {{ctx.monitor.name}}: No logs received from <%= server.name %> between {{ctx.periodStart}} and {{ctx.periodEnd}}\"}", |
125 | 125 | "lang": "mustache"
|
126 | 126 | },
|
127 | 127 | "throttle_enabled": true,
|
|
134 | 134 | "unit": "MINUTES"
|
135 | 135 | }
|
136 | 136 | },
|
137 |
| - { |
138 |
| - "$$OMIT": "<%= !serverTag('wildfire') || serverTag('production') ? 'true' : 'false' %>", |
139 |
| - "id": "<%= idgen('action-nonprod-wf', server.name, agent.index) %>", |
140 |
| - "name": "notify", |
141 |
| - "destination_id": "wf-nonprod-msteams", |
142 |
| - "message_template": { |
143 |
| - "source": "{\"text\": \"No logs received from <%= server.name %> between {{ctx.periodStart}} and {{ctx.periodEnd}}\"}", |
144 |
| - "lang": "mustache" |
145 |
| - }, |
146 |
| - "throttle_enabled": true, |
147 |
| - "subject_template": { |
148 |
| - "source": "", |
149 |
| - "lang": "mustache" |
150 |
| - }, |
151 |
| - "throttle": { |
152 |
| - "value": 240, |
153 |
| - "unit": "MINUTES" |
154 |
| - } |
155 |
| - }, |
156 | 137 | {
|
157 | 138 | "$$OMIT": "<%= !serverTag('wildfire') || !serverTag('production') ? 'true' : 'false' %>",
|
158 | 139 | "id": "<%= idgen('action-prod-wf', server.name, agent.index) %>",
|
159 |
| - "name": "notify", |
| 140 | + "name": "Notify Wildfire Prod Teams Channel", |
160 | 141 | "destination_id": "wf-prod-msteams",
|
161 | 142 | "message_template": {
|
162 |
| - "source": "{\"text\": \"No logs received from <%= server.name %> between {{ctx.periodStart}} and {{ctx.periodEnd}}\"}", |
| 143 | + "source": "{\"text\": \"Monitor {{ctx.monitor.name}}: No logs received from <%= server.name %> between {{ctx.periodStart}} and {{ctx.periodEnd}}\"}", |
163 | 144 | "lang": "mustache"
|
164 | 145 | },
|
165 | 146 | "throttle_enabled": true,
|
|
0 commit comments