Scripting status of server

Post Reply
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Scripting status of server

Post by gabrielp »

Any way to script the status of a flow? The Switch clients and other software can contact the Switch server and get information out. I'd like to build a tool that would easily show me the status of a flow, if its running or not. Does anyone know how to get information from the Switch server via HTTP? I know the web services module could probably do some of this but I'd like to take advantage of the parts already available.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Scripting status of server

Post by freddyp »

As you expected there is indeed a GetFlowState in the web services module, but there is no such thing in the scripting part. This is also not surprising because you need an external source to check for this: if the flow status check were part of a (separate) flow the check would only work if that flow were running, so you would have to check the check (and so on).



Freddy
Post Reply