Skip to content

Commit 972eaef

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

11 files changed

+75
-39
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: 65 additions & 29 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,44 +31,71 @@ 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:
38+
created_at: "2025-11-11T14:38:44.303203+00:00"
39+
data:
40+
click:
41+
ipAddress: "2620:1ec:bdf::40"
42+
link: "https://example.com/products"
43+
timestamp: "2025-11-11T14:38:43.814112+00:00"
44+
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0"
45+
created_at: "2025-11-11T14:38:43.814135+00:00"
46+
email_id: "50cd6bf1-577e-4001-9cef-5f55484111f0"
47+
48+
headers:
49+
-
50+
name: "X-Example-ID"
51+
value: "12312312-1234-1234-1234-123412341234"
52+
subject: "Subscription Renewal Notice"
53+
tags:
54+
priority: "high"
55+
type: "renewal"
56+
template_id: "f6g7h8i9-j0k1-52l3-m4n5-o6p7q8r9s0t1"
57+
to:
58+
59+
network:
60+
client:
61+
geoip: {}
62+
resend:
63+
domain: "future.example.com"
64+
recipient_count: 1
65+
recipients: "[email protected]"
66+
service: "events"
67+
type: "email.clicked"
3868
message: |-
3969
{
40-
"data": {
41-
"email_id": "50cd6bf1-577e-4001-9cef-5f55484111f0",
42-
"headers": [
43-
{
44-
"name": "X-Example-ID",
45-
"value": "12312312-1234-1234-1234-123412341234"
46-
}
47-
],
48-
"subject": "Subscription Renewal Notice",
49-
"created_at": "2025-11-11T14:38:43.814135+00:00",
50-
"from": "[email protected]",
51-
"template_id": "f6g7h8i9-j0k1-52l3-m4n5-o6p7q8r9s0t1",
52-
"to": [
53-
54-
],
55-
"click": {
56-
"ipAddress": "2620:1ec:bdf::40",
57-
"link": "https://example.com/products",
58-
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0",
59-
"timestamp": "2025-11-11T14:38:43.814112+00:00"
70+
"data" : {
71+
"email_id" : "50cd6bf1-577e-4001-9cef-5f55484111f0",
72+
"headers" : [ {
73+
"name" : "X-Example-ID",
74+
"value" : "12312312-1234-1234-1234-123412341234"
75+
} ],
76+
"subject" : "Subscription Renewal Notice",
77+
"created_at" : "2025-11-11T14:38:43.814135+00:00",
78+
"from" : "[email protected]",
79+
"template_id" : "f6g7h8i9-j0k1-52l3-m4n5-o6p7q8r9s0t1",
80+
"to" : [ "[email protected]" ],
81+
"click" : {
82+
"ipAddress" : "2620:1ec:bdf::40",
83+
"link" : "https://example.com/products",
84+
"userAgent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0",
85+
"timestamp" : "2025-11-11T14:38:43.814112+00:00"
6086
},
61-
"tags": {
62-
"priority": "high",
63-
"type": "renewal"
87+
"tags" : {
88+
"priority" : "high",
89+
"type" : "renewal"
6490
}
6591
},
66-
"service": "events",
67-
"created_at": "2025-11-11T14:38:44.303203+00:00",
68-
"type": "email.clicked",
92+
"service" : "events",
93+
"created_at" : "2025-11-11T14:38:44.303203+00:00",
94+
"type" : "email.clicked"
6995
}
7096
tags:
7197
- "source:LOGS_SOURCE"
98+
timestamp: 1762871924303
7299
-
73100
sample: |-
74101
{
@@ -109,6 +136,7 @@ tests:
109136
}
110137
tags:
111138
- "source:LOGS_SOURCE"
139+
timestamp: 1758218197693
112140
-
113141
sample: |-
114142
{
@@ -175,6 +203,8 @@ tests:
175203
status: "verified"
176204
region: "us-east-1"
177205
status: "verified"
206+
resend:
207+
domain: "updates.helodali.com"
178208
type: "domain.deleted"
179209
message: |-
180210
{
@@ -212,6 +242,7 @@ tests:
212242
}
213243
tags:
214244
- "source:LOGS_SOURCE"
245+
timestamp: 1758217710788
215246
-
216247
sample: |-
217248
{
@@ -263,6 +294,10 @@ tests:
263294
subject: "Time to join the fun"
264295
to:
265296
297+
resend:
298+
domain: "resend.helodali.com"
299+
recipient_count: 1
300+
recipients: "[email protected]"
266301
type: "email.delivered"
267302
message: |-
268303
{
@@ -292,3 +327,4 @@ tests:
292327
}
293328
tags:
294329
- "source:LOGS_SOURCE"
330+
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)