Skip to content

Commit 1f45c2a

Browse files
committed
feat: remove duplicate notification
1 parent 6f04e7a commit 1f45c2a

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

workflow-cli/configuration-opensearch/alerting/agent-heartbeat.monitor.json

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"actions": [
8282
{
8383
"id": "<%= idgen('action-teams', server.name, agent.index) %>",
84-
"name": "Notify Teams Channel",
84+
"name": "Notify Appinfra Teams Channel",
8585
"destination_id": "appinfra-msteams",
8686
"message_template": {
8787
"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,10 +118,10 @@
118118
{
119119
"$$OMIT": "<%= !serverTag('wildfire') || !serverTag('nonproduction') ? 'true' : 'false' %>",
120120
"id": "<%= idgen('action-nonprod-wf', server.name, agent.index) %>",
121-
"name": "notify",
121+
"name": "Notify Wildfire Nonprod Teams Channel",
122122
"destination_id": "wf-nonprod-msteams",
123123
"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}}\"}",
125125
"lang": "mustache"
126126
},
127127
"throttle_enabled": true,
@@ -134,32 +134,13 @@
134134
"unit": "MINUTES"
135135
}
136136
},
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-
},
156137
{
157138
"$$OMIT": "<%= !serverTag('wildfire') || !serverTag('production') ? 'true' : 'false' %>",
158139
"id": "<%= idgen('action-prod-wf', server.name, agent.index) %>",
159-
"name": "notify",
140+
"name": "Notify Wildfire Prod Teams Channel",
160141
"destination_id": "wf-prod-msteams",
161142
"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}}\"}",
163144
"lang": "mustache"
164145
},
165146
"throttle_enabled": true,

0 commit comments

Comments
 (0)