Alteryx Server

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Alteryx API - Run Length

Highlighted
7 - Meteor

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.

 

run_length.png

 

Any help would be appreciated.

 

Thanks,

Matt 

Highlighted
Alteryx Partner

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. 

Highlighted
Alteryx
Alteryx

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

Highlighted
7 - Meteor

Thank you for your input!

Highlighted
7 - Meteor

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