Merge branch 'email-target-notification' of github.com:influxdata/docs-v2 into email-target-notification
commit
107bf14825
|
@ -193,7 +193,6 @@ Mailgun requires that a domain be specified via Mailgun. A domain is automatical
|
|||
```js
|
||||
import "http"
|
||||
|
||||
|
||||
// Import the Secrets package if you store your API key as a secret.
|
||||
// For detail on how to do this, see Step 4 above.
|
||||
import "influxdata/influxdb/secrets"
|
||||
|
@ -210,7 +209,7 @@ numberOfCrits = from(bucket: "_monitoring")
|
|||
|
||||
numberOfCrits
|
||||
|> map(fn: (r) =>
|
||||
(if r._value > 1 then {r with _value: http.post(url: "https://api.mailgun.net/v3/YOUR_DOMAIN/messages", headers: {Authorization: "Basic api:<your-private-api-key"}, data: bytes(v: "{
|
||||
(if r._value > 1 then {r with _value: http.post(url: "https://api.mailgun.net/v3/YOUR_DOMAIN/messages", headers: {Authorization: "Basic api:your-private-api-key"}, data: bytes(v: "{
|
||||
from='Excited User <mailgun@YOUR_DOMAIN_NAME>' \
|
||||
to=YOU@YOUR_DOMAIN_NAME \
|
||||
to=bar@example.com \
|
||||
|
|
Loading…
Reference in New Issue