Skip to content

Commit bc2f7b9

Browse files
committed
Resend: All assets for initial release, config fixes
1 parent f975699 commit bc2f7b9

11 files changed

+18
-14
lines changed

resend/assets/logs/resend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pipeline:
6666
name: Resend
6767
enabled: true
6868
filter:
69-
query: source:resend service:events
69+
query: source:resend
7070
processors:
7171
- type: date-remapper
7272
name: Define `created_at` as the official date of the log

resend/assets/logs/resend_tests.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: "REPLACE_WITH_APP_ID"
1+
id: resend
22
tests:
33
-
44
sample: |-
@@ -31,10 +31,10 @@ tests:
3131
},
3232
"service": "events",
3333
"created_at": "2025-11-11T14:38:44.303203+00:00",
34-
"type": "email.clicked",
34+
"type": "email.clicked"
3535
}
3636
result:
37-
custom: {}
37+
custom: { }
3838
message: |-
3939
{
4040
"data": {
@@ -68,7 +68,8 @@ tests:
6868
"type": "email.clicked",
6969
}
7070
tags:
71-
- "source:LOGS_SOURCE"
71+
- "source:LOGS_SOURCE"
72+
timestamp: 1
7273
-
7374
sample: |-
7475
{
@@ -109,6 +110,7 @@ tests:
109110
}
110111
tags:
111112
- "source:LOGS_SOURCE"
113+
timestamp: 1758218197693
112114
-
113115
sample: |-
114116
{
@@ -212,6 +214,7 @@ tests:
212214
}
213215
tags:
214216
- "source:LOGS_SOURCE"
217+
timestamp: 1758217710788
215218
-
216219
sample: |-
217220
{
@@ -292,3 +295,4 @@ tests:
292295
}
293296
tags:
294297
- "source:LOGS_SOURCE"
298+
timestamp: 1757627939303

resend/assets/monitors/high_broadcast_email_delivery_delayed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] High broadcast email delivery delayed rate for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.delivery_delayed @data.broadcast_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"1h\") > 50",
12-
"message": "The number of recent delayed delivery from broadcast email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of recent delayed delivery from broadcast email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

resend/assets/monitors/high_broadcast_email_delivery_failure.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] High broadcast email delivery failure rate for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.failed @data.broadcast_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"4h\") > 50",
12-
"message": "The number of recent delivery failures from broadcast email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of recent delivery failures from broadcast email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

resend/assets/monitors/high_transactional_email_delivery_delayed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] High transactional email delivery delayed rate for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.delivery_delayed [email protected]_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"1h\") > 10",
12-
"message": "The number of recent delayed delivery from transactional email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of recent delayed delivery from transactional email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

resend/assets/monitors/high_transactional_email_delivery_failure.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] High transactional email delivery failure rate for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.failed [email protected]_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"4h\") > 10",
12-
"message": "The number of recent delivery failures from transactional email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of recent delivery failures from transactional email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

resend/assets/monitors/spike_in_broadcast_email_bounces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] Spike in broadcast email bounces for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.bounced @data.broadcast_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"4h\") > 50",
12-
"message": "The number of recent broadcast email bounces for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of recent broadcast email bounces for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

resend/assets/monitors/spike_in_broadcast_email_complaints.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] Spike in broadcast email complaints for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.complained @data.broadcast_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"1d\") > 50",
12-
"message": "The number of complaints from broadcast email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of complaints from broadcast email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

resend/assets/monitors/spike_in_transactional_email_bounces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] Spike in transactional email bounces for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.bounced [email protected]_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"4h\") > 10",
12-
"message": "The number of recent transactional email bounces for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of recent transactional email bounces for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

resend/assets/monitors/spike_in_transactional_email_complaints.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "[Resend] Spike in transactional email complaints for domain",
1010
"type": "log alert",
1111
"query": "logs(\"source:resend service:events @type:email.complained [email protected]_id:*\").index(\"*\").rollup(\"count\").by(\"@resend.domain\").last(\"1d\") > 10",
12-
"message": "The number of complaints from transactional email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @brian.williams@barefootcoders.com",
12+
"message": "The number of complaints from transactional email for {{[resend.domain].name}} is {{#is_alert}}high{{/is_alert}}{{#is_alert_recovery}}back below threshold{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:resend"
1515
],

0 commit comments

Comments
 (0)