Return a response adhering to the following JSON result shape from your action to evaluate a remote condition:
{ 'result': false, 'errorMessage': "Deployment blocked due to service being in alarm state" } |
Returning false indicates failure, and so does any exception that might be thrown by your remote action. |
You can evaluate responses of the following actions: