I started using the api to put machines in maintenance mode as we do restarts, deploys or other things that I'm already notified of.
This has worked great, only problem is that I end up having expired maintenances laying around. I would like to clean them up in an automated fashion but I haven't been able to figure out a way. I didn't see anyway to query the state for active/expired.
And all the ideas I was coming up with would be really really messy. Any help would be much appreciated!
This has worked great, only problem is that I end up having expired maintenances laying around. I would like to clean them up in an automated fashion but I haven't been able to figure out a way. I didn't see anyway to query the state for active/expired.
And all the ideas I was coming up with would be really really messy. Any help would be much appreciated!
Comment