fetch connection count details from application insight for azure function connection

%3CLINGO-SUB%20id%3D%22lingo-sub-1126722%22%20slang%3D%22en-US%22%3Efetch%20connection%20count%20details%20from%20application%20insight%20for%20azure%20function%20connection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1126722%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3EI%20created%20an%20azure%20function%20and%20I%20set%20a%20monitoring%20alert%20on%20this%20function%20for%20specific%20%22Connection%22%20signal%20name%20type%20in%20alert.%3CBR%20%2F%3EFor%20example%20if%20connection%20count%20is%20greater%20then%2010%20then%20I%20want%20to%20get%20notification%2Femail%20using%20monitoring%20alert%20for%20my%20azure%20function.%3C%2FP%3E%3CP%3EHere%2C%20I%20call%20azure%20function%203%20times%20but%20a%20graph%20you%20can%20see%20below%20display%2012%20connection.%20I%20set%20%22Aggregation%20Granularity%20(Period)%20%3D%205%20min%22%20and%20%22Frequency%20of%20evaluation%20%3D%201%20min%22%20in%20azure%20monitoring%20alert.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EI%20need%20a%20query%20of%20%22application%20insight%22%20where%20I%20can%20find%20a%20details%20of%20connection%20count%20using%20a%20application%20insight%20query.%3C%2FP%3E%3CP%3EI%20can%20able%20to%20fetch%20%22request%22%20for%20last%2030%20min%20but%20need%20a%20query%2C%20how%20connection%20count%20handle%20by%20application%20insight.%3C%2FP%3E%3CP%3E(Also%20It%20would%20be%20good%20if%20you%20can%20share%20a%20details%20how%20connection%20count%20majored%20by%20alert%20monitoring%20alert%20and%20azure%20function).%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1126722%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApplication%20Insights%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hi Team,

I created an azure function and I set a monitoring alert on this function for specific "Connection" signal name type in alert.
For example if connection count is greater then 10 then I want to get notification/email using monitoring alert for my azure function.

Here, I call azure function 3 times but a graph you can see below display 12 connection. I set "Aggregation Granularity (Period) = 5 min" and "Frequency of evaluation = 1 min" in azure monitoring alert.
Connection 1.png

I need a query of "application insight" where I can find a details of connection count using a application insight query.

I can able to fetch "request" for last 30 min but need a query, how connection count handle by application insight.

(Also It would be good if you can share a details how connection count majored by alert monitoring alert and azure function).

Thanks