Is there any way in Powershell to find ADF slices that completed in last 1 hour for example?

Viewed 576

Given certain dataset, I want to find out how many of its slices actually became Ready in last 1 hour (or say 2 hours, it's just an example). This gives me idea of cluster health. Because out of dozens of datasets, if no Ready slice was produced in last couple of hours, it's surely alarming for me.

I know Powershell has a cmdlet to get slice status which returns actual start and end time of slices -- but the problem is it finds that only on the basis of slice information. I don't care if the slice date is 1 year back -- I want the status on the basis of actual start and end time for that slice -- and I want to do it programmatically.

Worst case is -- one will need to get status for all possible slices and then get actual start and end time, but this is very inefficient -- there is also limit on how many API calls one can in an hour.

1 Answers
Related