Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update notification.yml #830

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Update notification.yml #830

merged 1 commit into from
Oct 11, 2023

Conversation

danaelhe
Copy link
Member

Trying to use an email that is not associated with the account will result in an error:

 curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
  -d '{"name":"Landing page degraded performance","type":"latency","threshold":300,"comparison":"greater_than","notifications":{"email":["bob@gmail.com"],"slack":[{"channel":"Production Alerts","url":"https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ"}]},"period":"2m"}' \
  "https://api.digitalocean.com/v2/uptime/checks/dd70-40ed-b307-/alerts"
{"id":"bad_request","message":"invalid value for field 'notifications.email[0]': invalid email 'bob@gmail.com'","request_id":"dfd99e62bfdb"}

Trying to use an email that is not associated with the account will result in an error:

```
 curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
  -d '{"name":"Landing page degraded performance","type":"latency","threshold":300,"comparison":"greater_than","notifications":{"email":["bob@gmail.com"],"slack":[{"channel":"Production Alerts","url":"https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ"}]},"period":"2m"}' \
  "https://api.digitalocean.com/v2/uptime/checks/dd70-40ed-b307-/alerts"
{"id":"bad_request","message":"invalid value for field 'notifications.email[0]': invalid email 'bob@gmail.com'","request_id":"dfd99e62bfdb"}
```
@danaelhe danaelhe requested a review from a team October 11, 2023 16:21
@danaelhe danaelhe merged commit 9d239ea into main Oct 11, 2023
6 checks passed
@danaelhe danaelhe deleted the uptime_alert_email branch October 11, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants