 customEvents  | where name == "Event sharepoint monitoring script"   | where timestamp >= ago(00d)  | extend spRequestDuration = customDimensions.["spRequestDuration"]    | extend siteType = customDimensions.["SiteType"]   | summarize avgRequestDuration=avg(todouble(spRequestDuration)), threshold = 0000 by tostring(siteType), bin(timestamp, 0m) // use a time grain of 0 minutes  | render timechart    