Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When POSTing an alert, how to set "Deploy Environment"?

John Young
April 2, 2026

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:

alert.png

 

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":

```

"extraProperties": {
                    "environment": "dev"
                }```

1 answer

0 votes
Tomislav Tobijas
Community Champion
April 2, 2026

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

2026-04-02_17-56-33.png

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

Tomislav Tobijas
Community Champion
April 2, 2026

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.

Like John Young likes this
John Young
April 2, 2026

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.

Like Tomislav Tobijas likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events