Hello-
Is there a "run length" field in the api or both a start_time and a end_time field that can be used to calculate "run length"?
Using the API endpoint /admin/v1/workflows/jobs/ , I only can seem to see createDate field. I am missing a field that would show the end time.
I am basically looking for this field shown below.
Any help would be appreciated.
Thanks,
Matt
Solved! Go to Solution.
There's nothing in that API endpoint that I know of. What I do is build a workflow that pulls this data from my MongoDB instances that way I can get exactly what I want. I also recommend implementing the "Alteryx Server Usage Report" if you haven't seen it yet as it has a lot of great detail on your workflows.
Hi @matthewbechard,
@joshuaburkhow is correct. Currently the API does not report the completion time of a workflow run. Also, as mentioned above, this information can be pulled from your MongoDB instance, on the AlteryxService database and in the AS_Queue and AS_Results tables. To find workflows run through the API, you will need to filter on the IsHidden field (set it to filter on True) in the AS_Queue collection. Please note, if you have the functionality to allow users to run workflows without signing in, these will also be reported. If this is the case, you can also add a filter to match the username to the the SubscriptionID that houses the workflows.
Attached is a sample workflow I use to get Run and Queue times for workflows running through the Gallery that you can use. Just swap out the server name and passwords in the MongoDB Input tools
Thank you for your input!
Matt -Thank you for your input.... I wanted to accept this answer as the solution, but I click accept by accident on another answer. The mongo db flow gave me exactly what I was looking for.
Thanks again,
Matt
Hi Matt - in the Mongo data, how can you tell difference between a job that was run manually vs one that was truly scheduled?