From 827ab3032f9f49ff1ee69e3578e75f60f65f9920 Mon Sep 17 00:00:00 2001 From: Kelly Date: Tue, 11 Aug 2020 22:03:43 -0700 Subject: [PATCH] edits --- content/v2.0/monitor-alert/send-email.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/v2.0/monitor-alert/send-email.md b/content/v2.0/monitor-alert/send-email.md index e26a06bd8..1bd355c07 100644 --- a/content/v2.0/monitor-alert/send-email.md +++ b/content/v2.0/monitor-alert/send-email.md @@ -78,7 +78,7 @@ numberOfCrits = from(bucket: "_monitoring") numberOfCrits |> map(fn: (r) => (if r._value > 3 then {r with _value: http.post(url: "https://api.sendgrid.com/v3/mail/send", - headers: {"Content-Type": "application/json", "Authorization": "Bearer ${SENDGRID_APIKEY}", + headers: {"Content-Type": "application/json", "Authorization": "Bearer ${SENDGRID_APIKEY}", data: bytes(v: "{ \"personalizations\": [{ \"to\": [{ @@ -122,7 +122,8 @@ numberOfCrits = from(bucket: "_monitoring") numberOfCrits |> map(fn: (r) => - (if r._value > 3 then {r with _value: http.post(url: "https://email.your-aws-region.amazonaws.com/sendemail/v2/email/outbound-emails", headers: {"Content-Type": "application/json", "Authorization": "AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE,SignedHeaders=Datex-amz-date,Signature=9d63c3b5b7623d1fa3dc7fd1547313b9546c6d0fbbb6773a420613b7EXAMPLE"}, + (if r._value > 3 then {r with _value: http.post(url: "https://email.your-aws-region.amazonaws.com/sendemail/v2/email/outbound-emails", + headers: {"Content-Type": "application/json", "Authorization": "AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE,SignedHeaders=Datex-amz-date,Signature=9d63c3b5b7623d1fa3dc7fd1547313b9546c6d0fbbb6773a420613b7EXAMPLE"}, data: bytes(v: "{ \"personalizations\": [{ \"to\": [{