Rancher API Call to Determine if a Service Upgrade has Finished

Does anyone know if there is a way using the Rancher API to find out if a service upgraded has completed or failed? We would like to have a notification on when a service upgrade has completed. I have looked though the rancher documentation to try to find this capability to no avail.

The drone-rancher plugin simply retrieves the service and looks at service.state. When an upgrade is complete, the value will be “upgraded”.

Please note that after it’s in upgraded state, you will need to confirm/finish the upgrade so that the service goes to active state.