Hi, Compass!
I'm asking my QA Automation team to POST an alert directly to the affected component when that component fails its hourly health check.
I was able to _HAND ROLL_ an alert using Postman, and this is the example I was able to make:
This is pretty good!
This alert is _NOT_ filtered to a particular environment. That is, you can see that "Deployment Environment" is set to "Development." If I change it to any other value, that alert still appears.
* Change to "Staging" <-- alert still appears
* Change to "Production" <-- alert still shown
Is there a "magic" value I should be using so that the alert will be filtered to only one of the "Deployment Environment" values?
For what it's worth, here's what I used right now, under "event >> Alert":
```
Hi @John Young ,
I'm guessing you've been using this API call to post/create an event: POST Send event?
Based on the docs, you could try using deployment / deploymentProperties / environment / category
So, basically, we're talking about this:
"event": {
"deployment": {
"displayName": "<string">
....
"environment": {
"category": "DEVELOPMENT"
...
Note that I haven't tested this out, but a few of my colleagues are building something now, so I can check with them if they can try to see if it works.
Cheers,
Tobi
Actually, scratch that...
I just realized that this most likely won't work. 🫤
I'll ask the team to try to simulate this, but I didn't manage to find any official docs about this particular thing. You could check with the Dev Community if they have any insights about that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Got it, thank you for the reply! Given that we're not using the "DEploy Environment" pulldown for much right now, I don't think I'm gonna dive _too_ deep -- I just wanted to know if I was overlooking something simple, which it seems like I haven't. I appreciate the collaboration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.