I would like to create a script for checking if an environment is updating. As of now we have set up alerts to check if the environments are healthy or not, but they also trigger whenever the environments are updating. We can manually edit the alert to exclude it, but it would be better if this could be done automatically.
I just want to be sure I’m understanding exactly what you want.
Are you wanting to create a script that will check against all environments and then report back if something has changed in that environment since the last time the script has run?
It’s something similar to what you are describing, but its not important if something has changed or not.
What I would like to create is a script that checks if the environment is currently executing an update or not. If it’s executing a updating then I would like it to report back the ID of that environment.
Edit: Something like the pseudocode here if this makes it more clear
listOfEnvironments
for item in listOfEnviroments
=> Some API call to check if an update is executing
if (executing)
listOfUpdatingEnviroments.add(item)
Thank you, that script will do the trick. I was looking through the github yesterday, but since I write the scripts in python I didnt check the other folders.