Queries for the ADFTriggerRun table

For information on using these queries in the Azure portal, see Log Analytics tutorial. For the REST API, see Query.

TriggerRuns Availability

Gives the availability of the Trigger Runs.

// To create an alert for this query, click '+ New alert rule'
ADFTriggerRun
| where Status != 'Running' and Status != 'Waiting' and Status != 'WaitingOnDependency'
| where TriggerFailureType != 'UserError'
| summarize availability = 100.00 - (100.00*countif(Status != 'Succeeded') / count())  by bin(TimeGenerated, 1h)), _ResourceId
| order by TimeGenerated asc
| render timechart

Trigger runs latest Status

Returns latest Status of Trigger runs.

ADFTriggerRun
| summarize argmax(TimeGenerated, * ) by TriggerId, Status, _ResourceId