Forum Discussion

PatrikHansson's avatar
PatrikHansson
Brass Contributor
Sep 07, 2020

KQL to only get values during office hours

Hi, im trying to get insightdata for office hours only. all examples i find is for one day only but I want to have a graph for a week but only 6am to 16pm. Can't figure it out. Anyone that can help.

 

InsightsMetrics
| where Computer contains "servername"
| where Name == "WriteBytesPerSecond"
| where parse_json(Tags).["vm.azm.ms/mountId"] == "F:"
| summarize sum(Val) by Computer, bin(TimeGenerated, 24h)

Resources