diff --git a/samples/AppInsights/TroubleShootingGuides/D365BC Troubleshooting Guides (TSG)/content/Performance-overview-TSG.ipynb b/samples/AppInsights/TroubleShootingGuides/D365BC Troubleshooting Guides (TSG)/content/Performance-overview-TSG.ipynb index 4fe64ba3..126295d3 100644 --- a/samples/AppInsights/TroubleShootingGuides/D365BC Troubleshooting Guides (TSG)/content/Performance-overview-TSG.ipynb +++ b/samples/AppInsights/TroubleShootingGuides/D365BC Troubleshooting Guides (TSG)/content/Performance-overview-TSG.ipynb @@ -2,12 +2,12 @@ "metadata": { "kernelspec": { "name": "python3", - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python" }, "language_info": { "name": "python", - "version": "3.6.6", + "version": "3.8.10", "mimetype": "text/x-python", "codemirror_mode": { "name": "ipython", @@ -16,6 +16,12 @@ "pygments_lexer": "ipython3", "nbconvert_exporter": "python", "file_extension": ".py" + }, + "extensions": { + "azuredatastudio": { + "version": 1, + "views": [] + } } }, "nbformat_minor": 2, @@ -31,7 +37,12 @@ "NB! Some of the signal used in this notebook is only available in newer versions of Business Central, so check the version of your environment if some sections do not return any data. The signal documentation states in which version a given signal was introduced." ], "metadata": { - "azdata_cell_guid": "1f608a1d-2436-4b48-80d4-5c4d2f8ca7d0" + "azdata_cell_guid": "1f608a1d-2436-4b48-80d4-5c4d2f8ca7d0", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -39,9 +50,14 @@ "source": [ "## 1\\. Get setup: Load up Python libraries and connect to Application Insights\n", "First you need to set the notebook Kernel to Python3, load the KQLmagic module (did you install it? ) and connect to your Application Insights resource (get appid and appkey from the API access page in the Application Insights portal)" - ],Install instructions: https://github.com/microsoft/BCTech/tree/master/samples/AppInsights/TroubleShootingGuides + ], "metadata": { - "azdata_cell_guid": "f103fae9-cf6d-40f7-9062-11ce50691046" + "extensions": { + "azuredatastudio": { + "views": [] + } + }, + "azdata_cell_guid": "500d202c-0120-4247-adb4-1908b6e95882" } }, { @@ -52,23 +68,58 @@ ], "metadata": { "azdata_cell_guid": "a253fa8e-6ac2-4722-a00a-1c52aedab4ed", - "tags": [] + "tags": [], + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n Kqlmagic - banner\n \n \n \n
\n
\n
\n

Kql Query Language, aka kql, is the query language for advanced analytics on Azure Monitor resources. The current supported data sources are \n Azure Data Explorer (Kusto), Log Analytics and Application Insights. To get more information execute '%kql --help \"kql\"'

\n

\n • \n kql reference: Click on 'Help' tab > and Select 'kql reference' or execute '%kql --help \"kql\"'
\n • \n Kqlmagic configuration: execute '%config Kqlmagic'
\n • \n Kqlmagic usage: execute '%kql --usage'
\n • \n To report bug/issue: execute '%kql --bug-report'
\n

\n
\n
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Kqlmagic package is updated frequently. Run '!pip install Kqlmagic --no-cache-dir --upgrade' to use the latest version.
Kqlmagic version: 0.1.114, source: https://github.com/Microsoft/jupyter-Kqlmagic

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n
\n Click to find out what's new in Kqlmagic  What's New? \n
\n " + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "execution_count": 44 }, { "cell_type": "code", "source": [ "# Connect to the Application Insights API\r\n", "#%kql appinsights://appid='';appkey=''\r\n", - "%kql appinsights://appid='962fbf96-f15e-4d37-8f91-13cae96f4b3e';appkey='pqzx0g5g3lealndwcgow01kiirbw8bhrrpfzukb6'" + "%kql appinsights://appid='43d7cb5e-452b-4c08-93ca-a35109847936';appkey='c8hx7qtgxcew5a3uv8cg2bdukl4gcue0k2e0e670'" ], "metadata": { - "azdata_cell_guid": "8880451f-8468-47cb-a3de-71516c9123f5" + "azdata_cell_guid": "8880451f-8468-47cb-a3de-71516c9123f5", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, "outputs": [], - "execution_count": null + "execution_count": 45 }, { "cell_type": "markdown", @@ -78,32 +129,37 @@ "This workbook is designed for troubleshooting a single environment. Please provide values for aadTenantId and environmentName (or use a config file)." ], "metadata": { - "azdata_cell_guid": "9ef1220c-d9cc-4552-9297-1428efcafb32" + "azdata_cell_guid": "9ef1220c-d9cc-4552-9297-1428efcafb32", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { "cell_type": "code", "source": [ "# Add values for AAD tenant id, environment name, and date range.\r\n", - "# It is possible to leave the value for environment name blank (if you want to analyze across all values of the parameter)\r\n", + "# It is possible to leave the value for AAD tenant id or environment name blank (if you want to analyze across all values of the parameter)\r\n", "\r\n", "# You can either use configuration file (INI file format) or set filters directly. \r\n", "\r\n", "# If you specify a config file, then variables set here takes precedence over manually set filter variables\r\n", "# config file name and directory (full path)\r\n", - "configFile = \"c:/tmp/notebook.ini1\"\r\n", + "configFile = \"c:\\\\tmp/notebook.ini\"\r\n", "\r\n", "\r\n", "# Add AAD tenant id and environment name here\r\n", - "aadTenantId = \"67e44043-eac5-4b8d-94f9-05d3d9094020\"\r\n", + "aadTenantId = \"\"\r\n", "#aadTenantId = \"MyaaDtenantId\"\r\n", "environmentName = \"\"\r\n", - "extensionId = \"MyExtensionId\"\r\n", + "extensionId = \"\"\r\n", "\r\n", "# date filters for the analysis\r\n", "# use YYYY-MM-DD format for the dates (ISO 8601)\r\n", - "startDate = \"2021-01-20\"\r\n", - "endDate = \"2021-01-30\"\r\n", + "startDate = \"2021-11-01\"\r\n", + "endDate = \"2022-01-01\"\r\n", "\r\n", "\r\n", "\r\n", @@ -135,10 +191,21 @@ ], "metadata": { "azdata_cell_guid": "0a0785f7-a85e-4ccf-9020-732e1d4c058a", - "tags": [] + "tags": [], + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "name": "stdout", + "text": "Using these parameters for the analysis:\n----------------------------------------\naadTenantId \nenvironmentName \nstartDate 2021-11-01\nendDate 2022-01-01\n", + "output_type": "stream" + } + ], + "execution_count": 46 }, { "cell_type": "markdown", @@ -149,7 +216,12 @@ "Either click **Run All** above to run all sections, or scroll down to the type of analysis you want to do and manually run queries" ], "metadata": { - "azdata_cell_guid": "5f9b698d-8a7e-4757-b27d-02f219d6c589" + "azdata_cell_guid": "5f9b698d-8a7e-4757-b27d-02f219d6c589", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -164,7 +236,12 @@ "KQL samples: https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/RawData/Authorization.kql" ], "metadata": { - "azdata_cell_guid": "810235a1-c202-47a2-b9dc-4d4d1ffd123c" + "azdata_cell_guid": "810235a1-c202-47a2-b9dc-4d4d1ffd123c", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -179,7 +256,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0004'\r\n", "| extend clientType = tostring( customDimensions.clientType )\r\n", @@ -188,10 +265,978 @@ ], "metadata": { "azdata_cell_guid": "6426410c-182a-486c-8466-228cb9ce3228", - "tags": [] + "tags": [], + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "line": { + "color": "rgb(31, 118, 179)", + "width": 1 + }, + "name": "WebClient:request_count", + "opacity": 0.8, + "type": "scatter", + "x": [ + "2021-11-03T00:00:00+00:00", + "2021-11-04T00:00:00+00:00", + "2021-11-05T00:00:00+00:00", + "2021-11-06T00:00:00+00:00", + "2021-11-07T00:00:00+00:00", + "2021-11-08T00:00:00+00:00", + "2021-11-10T00:00:00+00:00", + "2021-12-09T00:00:00+00:00" + ], + "y": [ + 5, + 16, + 3, + null, + 1, + null, + null, + 1 + ] + }, + { + "line": { + "color": "rgb(254, 127, 14)", + "width": 1 + }, + "name": "ChildSession:request_count", + "opacity": 0.8, + "type": "scatter", + "x": [ + "2021-11-03T00:00:00+00:00", + "2021-11-04T00:00:00+00:00", + "2021-11-05T00:00:00+00:00", + "2021-11-06T00:00:00+00:00", + "2021-11-07T00:00:00+00:00", + "2021-11-08T00:00:00+00:00", + "2021-11-10T00:00:00+00:00", + "2021-12-09T00:00:00+00:00" + ], + "y": [ + 5, + 21, + 3, + null, + null, + null, + null, + 1 + ] + }, + { + "line": { + "color": "rgb(44, 160, 44)", + "width": 1 + }, + "name": "Background:request_count", + "opacity": 0.8, + "type": "scatter", + "x": [ + "2021-11-03T00:00:00+00:00", + "2021-11-04T00:00:00+00:00", + "2021-11-05T00:00:00+00:00", + "2021-11-06T00:00:00+00:00", + "2021-11-07T00:00:00+00:00", + "2021-11-08T00:00:00+00:00", + "2021-11-10T00:00:00+00:00", + "2021-12-09T00:00:00+00:00" + ], + "y": [ + 2, + 7, + 4, + 3, + 2, + 3, + 3, + 1 + ] + } + ], + "layout": { + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Number of sessions by client type" + }, + "xaxis": { + "autorange": true, + "title": { + "text": "timestamp" + }, + "type": "date" + }, + "yaxis": { + "ticksuffix": "", + "title": { + "text": "request_count" + }, + "type": "linear" + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.692): 17 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[{'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 6, 0, 0, tzinfo=tzutc()), 'request_count': 3},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 10, 0, 0, tzinfo=tzutc()), 'request_count': 3},\n {'clientType': 'WebClient', 'timestamp': datetime.datetime(2021, 12, 9, 0, 0, tzinfo=tzutc()), 'request_count': 1},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 12, 9, 0, 0, tzinfo=tzutc()), 'request_count': 1},\n {'clientType': 'ChildSession', 'timestamp': datetime.datetime(2021, 12, 9, 0, 0, tzinfo=tzutc()), 'request_count': 1},\n {'clientType': 'WebClient', 'timestamp': datetime.datetime(2021, 11, 4, 0, 0, tzinfo=tzutc()), 'request_count': 16},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 4, 0, 0, tzinfo=tzutc()), 'request_count': 7},\n {'clientType': 'ChildSession', 'timestamp': datetime.datetime(2021, 11, 4, 0, 0, tzinfo=tzutc()), 'request_count': 21},\n {'clientType': 'WebClient', 'timestamp': datetime.datetime(2021, 11, 7, 0, 0, tzinfo=tzutc()), 'request_count': 1},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 7, 0, 0, tzinfo=tzutc()), 'request_count': 2},\n {'clientType': 'WebClient', 'timestamp': datetime.datetime(2021, 11, 3, 0, 0, tzinfo=tzutc()), 'request_count': 5},\n {'clientType': 'ChildSession', 'timestamp': datetime.datetime(2021, 11, 3, 0, 0, tzinfo=tzutc()), 'request_count': 5},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 3, 0, 0, tzinfo=tzutc()), 'request_count': 2},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 8, 0, 0, tzinfo=tzutc()), 'request_count': 3},\n {'clientType': 'WebClient', 'timestamp': datetime.datetime(2021, 11, 5, 0, 0, tzinfo=tzutc()), 'request_count': 3},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 5, 0, 0, tzinfo=tzutc()), 'request_count': 4},\n {'clientType': 'ChildSession', 'timestamp': datetime.datetime(2021, 11, 5, 0, 0, tzinfo=tzutc()), 'request_count': 3}]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 47, + "output_type": "execute_result" + } + ], + "execution_count": 47 }, { "cell_type": "code", @@ -205,7 +1250,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0004'\r\n", "| extend clientType = tostring( customDimensions.clientType )\r\n", @@ -216,10 +1261,980 @@ "| render columnchart with (ycolumns = log_count, series = clientType, title= 'Execution time (in seconds) of session login time by client type', ytitle = 'log(count)') " ], "metadata": { - "azdata_cell_guid": "2da40a82-82ec-44a2-b13b-6086e11cdfb0" + "azdata_cell_guid": "2da40a82-82ec-44a2-b13b-6086e11cdfb0", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "color": "rgb(31, 118, 179)" + }, + "name": "WebClient:log_count", + "orientation": "v", + "type": "bar", + "x": [ + 0, + 1, + 2, + 4, + 5, + 6, + 7, + 8, + 10 + ], + "y": [ + 0.6020599913279624, + 0.6989700043360189, + 0.6020599913279624, + null, + 0.3010299956639812, + 0.9542425094393249, + 0.3010299956639812, + null, + null + ] + }, + { + "marker": { + "color": "rgb(254, 127, 14)" + }, + "name": "ChildSession:log_count", + "orientation": "v", + "type": "bar", + "x": [ + 0, + 1, + 2, + 4, + 5, + 6, + 7, + 8, + 10 + ], + "y": [ + 1.4771212547196624, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + { + "marker": { + "color": "rgb(44, 160, 44)" + }, + "name": "Background:log_count", + "orientation": "v", + "type": "bar", + "x": [ + 0, + 1, + 2, + 4, + 5, + 6, + 7, + 8, + 10 + ], + "y": [ + 1.2304489213782739, + null, + null, + 0, + null, + null, + 0.6020599913279624, + 0, + 0.3010299956639812 + ] + } + ], + "layout": { + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Execution time (in seconds) of session login time by client type" + }, + "xaxis": { + "ticksuffix": "", + "title": { + "text": "executionTimeInSeconds" + }, + "type": "linear" + }, + "yaxis": { + "title": { + "text": "log(count)" + }, + "type": "linear" + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:02.155): 12 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[{'executionTimeInSeconds': 0, 'clientType': 'WebClient', '_count': 4, 'log_count': 0.6020599913279624},\n {'executionTimeInSeconds': 1, 'clientType': 'WebClient', '_count': 5, 'log_count': 0.6989700043360189},\n {'executionTimeInSeconds': 2, 'clientType': 'WebClient', '_count': 4, 'log_count': 0.6020599913279624},\n {'executionTimeInSeconds': 5, 'clientType': 'WebClient', '_count': 2, 'log_count': 0.3010299956639812},\n {'executionTimeInSeconds': 6, 'clientType': 'WebClient', '_count': 9, 'log_count': 0.9542425094393249},\n {'executionTimeInSeconds': 7, 'clientType': 'WebClient', '_count': 2, 'log_count': 0.3010299956639812},\n {'executionTimeInSeconds': 0, 'clientType': 'ChildSession', '_count': 30, 'log_count': 1.4771212547196624},\n {'executionTimeInSeconds': 0, 'clientType': 'Background', '_count': 17, 'log_count': 1.2304489213782739},\n {'executionTimeInSeconds': 4, 'clientType': 'Background', '_count': 1, 'log_count': 0},\n {'executionTimeInSeconds': 7, 'clientType': 'Background', '_count': 4, 'log_count': 0.6020599913279624},\n {'executionTimeInSeconds': 8, 'clientType': 'Background', '_count': 1, 'log_count': 0},\n {'executionTimeInSeconds': 10, 'clientType': 'Background', '_count': 2, 'log_count': 0.3010299956639812}]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 48, + "output_type": "execute_result" + } + ], + "execution_count": 48 }, { "cell_type": "markdown", @@ -233,7 +2248,12 @@ "KQL samples: [https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/RawData/WebServiceCalls.kql](https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/RawData/WebServiceCalls.kql)" ], "metadata": { - "azdata_cell_guid": "2f9c2d0d-df3c-482b-af58-48416a517117" + "azdata_cell_guid": "2f9c2d0d-df3c-482b-af58-48416a517117", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -248,7 +2268,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0008'\r\n", "| extend category = tostring( customDimensions.category )\r\n", @@ -257,10 +2277,49 @@ ], "metadata": { "azdata_cell_guid": "a9e923e9-1d05-4acf-a230-4c5142bc3582", - "tags": [] + "tags": [], + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n Kqlmagic - chart\n \n \n


EMPTY CHART (no data)

.
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:01.359): 0 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 49, + "output_type": "execute_result" + } + ], + "execution_count": 49 }, { "cell_type": "code", @@ -274,7 +2333,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0008'\r\n", "| extend category = tostring( customDimensions.category )\r\n", @@ -285,10 +2344,49 @@ "" ], "metadata": { - "azdata_cell_guid": "e4e56e1a-ab5d-427a-bc49-747e6ae34a75" + "azdata_cell_guid": "e4e56e1a-ab5d-427a-bc49-747e6ae34a75", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n Kqlmagic - chart\n \n \n


EMPTY CHART (no data)

.
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.576): 0 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 50, + "output_type": "execute_result" + } + ], + "execution_count": 50 }, { "cell_type": "markdown", @@ -304,7 +2402,12 @@ "Explanation of different HTTP status codes: [https://en.wikipedia.org/wiki/List_of_HTTP_status_codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes)" ], "metadata": { - "azdata_cell_guid": "4e383a51-5630-42ad-8f5a-525a0e587853" + "azdata_cell_guid": "4e383a51-5630-42ad-8f5a-525a0e587853", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -319,7 +2422,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0019'\r\n", "| extend alObjectId = toint(customDimensions.alObjectId) \r\n", @@ -329,10 +2432,49 @@ "| render timechart title= 'Number of outgoing web service requests by HTTP status code'" ], "metadata": { - "azdata_cell_guid": "e0bc12e5-e294-44b0-a5f4-ef1464642a53" + "azdata_cell_guid": "e0bc12e5-e294-44b0-a5f4-ef1464642a53", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n Kqlmagic - chart\n \n \n


EMPTY CHART (no data)

.
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:01.980): 0 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 51, + "output_type": "execute_result" + } + ], + "execution_count": 51 }, { "cell_type": "code", @@ -346,7 +2488,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0019'\r\n", "| extend httpMethod = tostring( toupper( customDimensions.httpMethod ) )\r\n", @@ -361,10 +2503,49 @@ "" ], "metadata": { - "azdata_cell_guid": "4a5c1273-dad2-4625-b7a6-a887564979a8" + "azdata_cell_guid": "4a5c1273-dad2-4625-b7a6-a887564979a8", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n Kqlmagic - chart\n \n \n


EMPTY CHART (no data)

.
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.562): 0 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 52, + "output_type": "execute_result" + } + ], + "execution_count": 52 }, { "cell_type": "markdown", @@ -385,7 +2566,12 @@ "" ], "metadata": { - "azdata_cell_guid": "2f7e604a-0d02-484e-9bcb-a6aa148d5f0b" + "azdata_cell_guid": "2f7e604a-0d02-484e-9bcb-a6aa148d5f0b", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -400,7 +2586,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0005'\r\n", "| summarize count() by bin(timestamp, 1d)\r\n", @@ -408,10 +2594,49 @@ ], "metadata": { "azdata_cell_guid": "9ec9b678-7d66-4758-9101-4e9e5025dfcf", - "tags": [] + "tags": [], + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n Kqlmagic - chart\n \n \n


EMPTY CHART (no data)

.
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.520): 0 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 53, + "output_type": "execute_result" + } + ], + "execution_count": 53 }, { "cell_type": "code", @@ -425,17 +2650,56 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0012'\r\n", "| summarize request_count=count() by bin(timestamp, 1d)\r\n", "| render timechart title= 'Number of database lock timeouts'" ], "metadata": { - "azdata_cell_guid": "3ee52ced-9377-46a5-865a-528cceb6b335" + "azdata_cell_guid": "3ee52ced-9377-46a5-865a-528cceb6b335", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n Kqlmagic - chart\n \n \n


EMPTY CHART (no data)

.
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.711): 0 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 54, + "output_type": "execute_result" + } + ], + "execution_count": 54 }, { "cell_type": "markdown", @@ -453,7 +2717,12 @@ "" ], "metadata": { - "azdata_cell_guid": "7ed10cbf-6380-4591-ad66-8dc6b886ba48" + "azdata_cell_guid": "7ed10cbf-6380-4591-ad66-8dc6b886ba48", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -468,7 +2737,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId in ('LC0001')\r\n", "| extend operation_type = case(\r\n", @@ -481,10 +2750,49 @@ "| render timechart title= 'Company management operations'" ], "metadata": { - "azdata_cell_guid": "f8e7955e-2b86-410b-98ad-f4979d85e879" + "azdata_cell_guid": "f8e7955e-2b86-410b-98ad-f4979d85e879", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n Kqlmagic - chart\n \n \n


EMPTY CHART (no data)

.
\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.562): 0 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 55, + "output_type": "execute_result" + } + ], + "execution_count": 55 }, { "cell_type": "markdown", @@ -500,7 +2808,12 @@ "* https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/PerformanceTuning/ReportExecution.kql" ], "metadata": { - "azdata_cell_guid": "9e51a638-4e8d-413b-bc03-87bc8cac36a3" + "azdata_cell_guid": "9e51a638-4e8d-413b-bc03-87bc8cac36a3", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -515,7 +2828,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0006'\r\n", "| extend clientType = tostring( customDimensions.clientType )\r\n", @@ -525,10 +2838,916 @@ "| render timechart title= 'Number of reports executed (shown by client/session type)'" ], "metadata": { - "azdata_cell_guid": "21e5d398-4a06-4ab9-a0e3-6e6263725dec" + "azdata_cell_guid": "21e5d398-4a06-4ab9-a0e3-6e6263725dec", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "line": { + "color": "rgb(31, 118, 179)", + "width": 1 + }, + "name": "Background:count", + "opacity": 0.8, + "type": "scatter", + "x": [ + "2021-11-04T00:00:00+00:00", + "2021-11-05T00:00:00+00:00", + "2021-11-06T00:00:00+00:00", + "2021-11-07T00:00:00+00:00", + "2021-11-08T00:00:00+00:00", + "2021-11-10T00:00:00+00:00" + ], + "y": [ + 2, + 1, + 1, + 1, + 1, + 1 + ] + } + ], + "layout": { + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Number of reports executed (shown by client/session type)" + }, + "xaxis": { + "autorange": true, + "title": { + "text": "timestamp" + }, + "type": "date" + }, + "yaxis": { + "ticksuffix": "", + "title": { + "text": "count" + }, + "type": "linear" + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.635): 6 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[{'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 6, 0, 0, tzinfo=tzutc()), 'count': 1},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 10, 0, 0, tzinfo=tzutc()), 'count': 1},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 8, 0, 0, tzinfo=tzutc()), 'count': 1},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 4, 0, 0, tzinfo=tzutc()), 'count': 2},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 7, 0, 0, tzinfo=tzutc()), 'count': 1},\n {'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 5, 0, 0, tzinfo=tzutc()), 'count': 1}]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 56, + "output_type": "execute_result" + } + ], + "execution_count": 56 }, { "cell_type": "code", @@ -542,7 +3761,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0006'\r\n", "| extend reportName = tostring( customDimensions.alObjectName )\r\n", @@ -555,10 +3774,962 @@ "| render columnchart with (title= 'Execution time stats of reports by report name (top 10 by 95% percentile)', ytitle='Time (in seconds)' ) " ], "metadata": { - "azdata_cell_guid": "80670aee-4a06-44da-8b8f-b0bb8124ef12" + "azdata_cell_guid": "80670aee-4a06-44da-8b8f-b0bb8124ef12", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "color": "rgb(31, 118, 179)" + }, + "name": "avg", + "orientation": "v", + "type": "bar", + "x": [ + "Customer - Top 10 List", + "Customer - Order Summary", + "Delegate Approval Requests" + ], + "y": [ + 9.0613605, + 7.9649012, + 0.14713576 + ] + }, + { + "marker": { + "color": "rgb(254, 127, 14)" + }, + "name": "median", + "orientation": "v", + "type": "bar", + "x": [ + "Customer - Top 10 List", + "Customer - Order Summary", + "Delegate Approval Requests" + ], + "y": [ + 9.0613605, + 7.9649012, + 0.1580078 + ] + }, + { + "marker": { + "color": "rgb(44, 160, 44)" + }, + "name": "percentile95", + "orientation": "v", + "type": "bar", + "x": [ + "Customer - Top 10 List", + "Customer - Order Summary", + "Delegate Approval Requests" + ], + "y": [ + 9.0613605, + 7.9649012, + 0.2173363 + ] + }, + { + "marker": { + "color": "rgb(214, 39, 39)" + }, + "name": "max", + "orientation": "v", + "type": "bar", + "x": [ + "Customer - Top 10 List", + "Customer - Order Summary", + "Delegate Approval Requests" + ], + "y": [ + 9.0613605, + 7.9649012, + 0.2173363 + ] + } + ], + "layout": { + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Execution time stats of reports by report name (top 10 by 95% percentile)" + }, + "xaxis": { + "ticksuffix": "", + "title": { + "text": "reportName" + }, + "type": "category" + }, + "yaxis": { + "title": { + "text": "Time (in seconds)" + }, + "type": "linear" + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.750): 3 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[{'reportName': 'Customer - Top 10 List', 'avg': 9.0613605, 'median': 9.0613605, 'percentile95': 9.0613605, 'max': 9.0613605},\n {'reportName': 'Customer - Order Summary', 'avg': 7.9649012, 'median': 7.9649012, 'percentile95': 7.9649012, 'max': 7.9649012},\n {'reportName': 'Delegate Approval Requests', 'avg': 0.14713576, 'median': 0.1580078, 'percentile95': 0.2173363, 'max': 0.2173363}]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 57, + "output_type": "execute_result" + } + ], + "execution_count": 57 }, { "cell_type": "markdown", @@ -575,7 +4746,12 @@ "- [https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/Queries/PerformanceTuning/SlowALMethods.kql](https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/Queries/PerformanceTuning/SlowALMethods.kql)" ], "metadata": { - "azdata_cell_guid": "a51485d6-2296-4b71-9483-c8402ce0c299" + "azdata_cell_guid": "a51485d6-2296-4b71-9483-c8402ce0c299", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -590,7 +4766,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0018'\r\n", "| extend clientType = tostring( customDimensions.clientType )\r\n", @@ -598,10 +4774,921 @@ "| render timechart title= 'Number of long running AL methods (shown by client/session type)'" ], "metadata": { - "azdata_cell_guid": "c69bee2d-6fd0-4723-b48f-b29eb8144444" + "azdata_cell_guid": "c69bee2d-6fd0-4723-b48f-b29eb8144444", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "line": { + "color": "rgb(31, 118, 179)", + "width": 1 + }, + "name": "Background:count", + "opacity": 0.8, + "type": "scatter", + "x": [ + "2021-11-04T00:00:00+00:00" + ], + "y": [ + 5 + ] + }, + { + "line": { + "color": "rgb(254, 127, 14)", + "width": 1 + }, + "name": "WebClient:count", + "opacity": 0.8, + "type": "scatter", + "x": [ + "2021-11-04T00:00:00+00:00" + ], + "y": [ + 6 + ] + } + ], + "layout": { + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Number of long running AL methods (shown by client/session type)" + }, + "xaxis": { + "autorange": true, + "title": { + "text": "timestamp" + }, + "type": "date" + }, + "yaxis": { + "ticksuffix": "", + "title": { + "text": "count" + }, + "type": "linear" + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.765): 2 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[{'clientType': 'Background', 'timestamp': datetime.datetime(2021, 11, 4, 0, 0, tzinfo=tzutc()), 'count': 5},\n {'clientType': 'WebClient', 'timestamp': datetime.datetime(2021, 11, 4, 0, 0, tzinfo=tzutc()), 'count': 6}]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 58, + "output_type": "execute_result" + } + ], + "execution_count": 58 }, { "cell_type": "code", @@ -618,7 +5705,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", " and customDimensions.eventId == 'RT0018'\r\n", "| extend \r\n", @@ -635,10 +5722,218 @@ "| limit 20" ], "metadata": { - "azdata_cell_guid": "4f6dae6f-f00c-45cd-a041-080d72b5bd70" + "azdata_cell_guid": "4f6dae6f-f00c-45cd-a041-080d72b5bd70", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": " alMethod alObjectType alObjectId alObjectName \\\n0 OnSaveAsTemplateHandler CodeUnit 1381 Customer Templ. Mgt. \n1 SaveAsTemplate CodeUnit 1381 Customer Templ. Mgt. \n2 InsertDimensions CodeUnit 1381 Customer Templ. Mgt. \n3 DefaultDimObjectNoList CodeUnit 408 DimensionManagement \n4 FillNormalFieldBuffer CodeUnit 408 DimensionManagement \n5 HandleRequest CodeUnit 448 Job Queue Dispatcher \n6 OnRun CodeUnit 6700 O365 Sync. Management \n7 ShowCustomerTemplCard CodeUnit 1381 Customer Templ. Mgt. \n8 RunReport CodeUnit 449 Job Queue Start Codeunit \n9 RunReport CodeUnit 487 Job Queue Start Report \n\n extensionName count_ avg_executionTimeInSec min_executionTimeInSec \\\n0 Base Application 1 40.71 40.71 \n1 Base Application 1 40.71 40.71 \n2 Base Application 1 23.15 23.15 \n3 Base Application 1 22.24 22.24 \n4 Base Application 1 20.93 20.93 \n5 Base Application 2 19.39 19.37 \n6 Base Application 1 17.37 17.37 \n7 Base Application 1 17.34 17.34 \n8 Base Application 1 11.96 11.96 \n9 Base Application 1 11.59 11.59 \n\n max_executionTimeInSec percentile_executionTimeInSec_95 \n0 40.71 40.71 \n1 40.71 40.71 \n2 23.15 23.15 \n3 22.24 22.24 \n4 20.93 20.93 \n5 19.41 19.41 \n6 17.37 17.37 \n7 17.34 17.34 \n8 11.96 11.96 \n9 11.59 11.59 ", + "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
alMethodalObjectTypealObjectIdalObjectNameextensionNamecount_avg_executionTimeInSecmin_executionTimeInSecmax_executionTimeInSecpercentile_executionTimeInSec_95
0OnSaveAsTemplateHandlerCodeUnit1381Customer Templ. Mgt.Base Application140.7140.7140.7140.71
1SaveAsTemplateCodeUnit1381Customer Templ. Mgt.Base Application140.7140.7140.7140.71
2InsertDimensionsCodeUnit1381Customer Templ. Mgt.Base Application123.1523.1523.1523.15
3DefaultDimObjectNoListCodeUnit408DimensionManagementBase Application122.2422.2422.2422.24
4FillNormalFieldBufferCodeUnit408DimensionManagementBase Application120.9320.9320.9320.93
5HandleRequestCodeUnit448Job Queue DispatcherBase Application219.3919.3719.4119.41
6OnRunCodeUnit6700O365 Sync. ManagementBase Application117.3717.3717.3717.37
7ShowCustomerTemplCardCodeUnit1381Customer Templ. Mgt.Base Application117.3417.3417.3417.34
8RunReportCodeUnit449Job Queue Start CodeunitBase Application111.9611.9611.9611.96
9RunReportCodeUnit487Job Queue Start ReportBase Application111.5911.5911.5911.59
\n
", + "application/vnd.dataresource+json": { + "schema": { + "fields": [ + { + "name": "alMethod", + "type": "string" + }, + { + "name": "alObjectType", + "type": "string" + }, + { + "name": "alObjectId", + "type": "integer" + }, + { + "name": "alObjectName", + "type": "string" + }, + { + "name": "extensionName", + "type": "string" + }, + { + "name": "count_", + "type": "integer" + }, + { + "name": "avg_executionTimeInSec", + "type": "number" + }, + { + "name": "min_executionTimeInSec", + "type": "number" + }, + { + "name": "max_executionTimeInSec", + "type": "number" + }, + { + "name": "percentile_executionTimeInSec_95", + "type": "number" + } + ], + "kqmagic_version": "0.1.114" + }, + "data": [ + { + "alMethod": "OnSaveAsTemplateHandler", + "alObjectType": "CodeUnit", + "alObjectId": 1381, + "alObjectName": "Customer Templ. Mgt.", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 40.71, + "min_executionTimeInSec": 40.71, + "max_executionTimeInSec": 40.71, + "percentile_executionTimeInSec_95": 40.71 + }, + { + "alMethod": "SaveAsTemplate", + "alObjectType": "CodeUnit", + "alObjectId": 1381, + "alObjectName": "Customer Templ. Mgt.", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 40.71, + "min_executionTimeInSec": 40.71, + "max_executionTimeInSec": 40.71, + "percentile_executionTimeInSec_95": 40.71 + }, + { + "alMethod": "InsertDimensions", + "alObjectType": "CodeUnit", + "alObjectId": 1381, + "alObjectName": "Customer Templ. Mgt.", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 23.15, + "min_executionTimeInSec": 23.15, + "max_executionTimeInSec": 23.15, + "percentile_executionTimeInSec_95": 23.15 + }, + { + "alMethod": "DefaultDimObjectNoList", + "alObjectType": "CodeUnit", + "alObjectId": 408, + "alObjectName": "DimensionManagement", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 22.24, + "min_executionTimeInSec": 22.24, + "max_executionTimeInSec": 22.24, + "percentile_executionTimeInSec_95": 22.24 + }, + { + "alMethod": "FillNormalFieldBuffer", + "alObjectType": "CodeUnit", + "alObjectId": 408, + "alObjectName": "DimensionManagement", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 20.93, + "min_executionTimeInSec": 20.93, + "max_executionTimeInSec": 20.93, + "percentile_executionTimeInSec_95": 20.93 + }, + { + "alMethod": "HandleRequest", + "alObjectType": "CodeUnit", + "alObjectId": 448, + "alObjectName": "Job Queue Dispatcher", + "extensionName": "Base Application", + "count_": 2, + "avg_executionTimeInSec": 19.39, + "min_executionTimeInSec": 19.37, + "max_executionTimeInSec": 19.41, + "percentile_executionTimeInSec_95": 19.41 + }, + { + "alMethod": "OnRun", + "alObjectType": "CodeUnit", + "alObjectId": 6700, + "alObjectName": "O365 Sync. Management", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 17.37, + "min_executionTimeInSec": 17.37, + "max_executionTimeInSec": 17.37, + "percentile_executionTimeInSec_95": 17.37 + }, + { + "alMethod": "ShowCustomerTemplCard", + "alObjectType": "CodeUnit", + "alObjectId": 1381, + "alObjectName": "Customer Templ. Mgt.", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 17.34, + "min_executionTimeInSec": 17.34, + "max_executionTimeInSec": 17.34, + "percentile_executionTimeInSec_95": 17.34 + }, + { + "alMethod": "RunReport", + "alObjectType": "CodeUnit", + "alObjectId": 449, + "alObjectName": "Job Queue Start Codeunit", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 11.96, + "min_executionTimeInSec": 11.96, + "max_executionTimeInSec": 11.96, + "percentile_executionTimeInSec_95": 11.96 + }, + { + "alMethod": "RunReport", + "alObjectType": "CodeUnit", + "alObjectId": 487, + "alObjectName": "Job Queue Start Report", + "extensionName": "Base Application", + "count_": 1, + "avg_executionTimeInSec": 11.59, + "min_executionTimeInSec": 11.59, + "max_executionTimeInSec": 11.59, + "percentile_executionTimeInSec_95": 11.59 + } + ] + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.535): 10 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[{'alMethod': 'OnSaveAsTemplateHandler', 'alObjectType': 'CodeUnit', 'alObjectId': 1381, 'alObjectName': 'Customer Templ. Mgt.', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 40.71, 'min_executionTimeInSec': 40.71, 'max_executionTimeInSec': 40.71, 'percentile_executionTimeInSec_95': 40.71},\n {'alMethod': 'SaveAsTemplate', 'alObjectType': 'CodeUnit', 'alObjectId': 1381, 'alObjectName': 'Customer Templ. Mgt.', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 40.71, 'min_executionTimeInSec': 40.71, 'max_executionTimeInSec': 40.71, 'percentile_executionTimeInSec_95': 40.71},\n {'alMethod': 'InsertDimensions', 'alObjectType': 'CodeUnit', 'alObjectId': 1381, 'alObjectName': 'Customer Templ. Mgt.', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 23.15, 'min_executionTimeInSec': 23.15, 'max_executionTimeInSec': 23.15, 'percentile_executionTimeInSec_95': 23.15},\n {'alMethod': 'DefaultDimObjectNoList', 'alObjectType': 'CodeUnit', 'alObjectId': 408, 'alObjectName': 'DimensionManagement', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 22.24, 'min_executionTimeInSec': 22.24, 'max_executionTimeInSec': 22.24, 'percentile_executionTimeInSec_95': 22.24},\n {'alMethod': 'FillNormalFieldBuffer', 'alObjectType': 'CodeUnit', 'alObjectId': 408, 'alObjectName': 'DimensionManagement', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 20.93, 'min_executionTimeInSec': 20.93, 'max_executionTimeInSec': 20.93, 'percentile_executionTimeInSec_95': 20.93},\n {'alMethod': 'HandleRequest', 'alObjectType': 'CodeUnit', 'alObjectId': 448, 'alObjectName': 'Job Queue Dispatcher', 'extensionName': 'Base Application', 'count_': 2, 'avg_executionTimeInSec': 19.39, 'min_executionTimeInSec': 19.37, 'max_executionTimeInSec': 19.41, 'percentile_executionTimeInSec_95': 19.41},\n {'alMethod': 'OnRun', 'alObjectType': 'CodeUnit', 'alObjectId': 6700, 'alObjectName': 'O365 Sync. Management', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 17.37, 'min_executionTimeInSec': 17.37, 'max_executionTimeInSec': 17.37, 'percentile_executionTimeInSec_95': 17.37},\n {'alMethod': 'ShowCustomerTemplCard', 'alObjectType': 'CodeUnit', 'alObjectId': 1381, 'alObjectName': 'Customer Templ. Mgt.', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 17.34, 'min_executionTimeInSec': 17.34, 'max_executionTimeInSec': 17.34, 'percentile_executionTimeInSec_95': 17.34},\n {'alMethod': 'RunReport', 'alObjectType': 'CodeUnit', 'alObjectId': 449, 'alObjectName': 'Job Queue Start Codeunit', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 11.96, 'min_executionTimeInSec': 11.96, 'max_executionTimeInSec': 11.96, 'percentile_executionTimeInSec_95': 11.96},\n {'alMethod': 'RunReport', 'alObjectType': 'CodeUnit', 'alObjectId': 487, 'alObjectName': 'Job Queue Start Report', 'extensionName': 'Base Application', 'count_': 1, 'avg_executionTimeInSec': 11.59, 'min_executionTimeInSec': 11.59, 'max_executionTimeInSec': 11.59, 'percentile_executionTimeInSec_95': 11.59}]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 59, + "output_type": "execute_result" + } + ], + "execution_count": 59 }, { "cell_type": "markdown", @@ -653,7 +5948,12 @@ "- [https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/BrowserUsage.kql](https://github.com/microsoft/BCTech/blob/master/samples/AppInsights/KQL/BrowserUsage.kql)" ], "metadata": { - "azdata_cell_guid": "8a11d93d-f077-41ff-ba20-6def2e6269ca" + "azdata_cell_guid": "8a11d93d-f077-41ff-ba20-6def2e6269ca", + "extensions": { + "azuredatastudio": { + "views": [] + } + } } }, { @@ -670,7 +5970,7 @@ "| where 1==1 \r\n", " and timestamp >= todatetime(_startDate)\r\n", " and timestamp <= todatetime(_endDate) + totimespan(24h) - totimespan(1ms) \r\n", - " and customDimensions.aadTenantId == _aadTenantId\r\n", + " and (_aadTenantId == '' or customDimensions.aadTenantId == _aadTenantId)\r\n", " and (_environmentName == '' or customDimensions.environmentName == _environmentName )\r\n", "| extend objectId = tostring(customDimensions.alObjectId)\r\n", "| summarize median_load_time_in_MS = percentile(duration,50), count=count() by pageName=name, objectId\r\n", @@ -678,10 +5978,134 @@ "| limit 10" ], "metadata": { - "azdata_cell_guid": "f2a00e07-d3bb-4651-8b04-ec80f7a6ddc8" + "azdata_cell_guid": "f2a00e07-d3bb-4651-8b04-ec80f7a6ddc8", + "extensions": { + "azuredatastudio": { + "views": [] + } + } }, - "outputs": [], - "execution_count": null + "outputs": [ + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

 * 43d7cb5e-452b-4c08-93ca-a35109847936@applicationinsights

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": " pageName objectId median_load_time_in_MS count\n0 Order Processor Role Center 9006 24378.0 25\n1 Customer Templ. Card 1382 24376.0 1\n2 Sales Order List 9305 11465.0 1\n3 Customer List 22 7758.0 1\n4 Customer - Top 10 List 111 2924.0 1\n5 Customer Card 21 2363.0 2\n6 Customer - Order Summary 107 2076.0 1\n7 Schedule a Report 682 633.0 2\n8 HelpAndSupport -1 498.0 21\n9 PageSearchForm -1 422.0 2", + "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
pageNameobjectIdmedian_load_time_in_MScount
0Order Processor Role Center900624378.025
1Customer Templ. Card138224376.01
2Sales Order List930511465.01
3Customer List227758.01
4Customer - Top 10 List1112924.01
5Customer Card212363.02
6Customer - Order Summary1072076.01
7Schedule a Report682633.02
8HelpAndSupport-1498.021
9PageSearchForm-1422.02
\n
", + "application/vnd.dataresource+json": { + "schema": { + "fields": [ + { + "name": "pageName", + "type": "string" + }, + { + "name": "objectId", + "type": "string" + }, + { + "name": "median_load_time_in_MS", + "type": "number" + }, + { + "name": "count", + "type": "integer" + } + ], + "kqmagic_version": "0.1.114" + }, + "data": [ + { + "pageName": "Order Processor Role Center", + "objectId": "9006", + "median_load_time_in_MS": 24378, + "count": 25 + }, + { + "pageName": "Customer Templ. Card", + "objectId": "1382", + "median_load_time_in_MS": 24376, + "count": 1 + }, + { + "pageName": "Sales Order List", + "objectId": "9305", + "median_load_time_in_MS": 11465, + "count": 1 + }, + { + "pageName": "Customer List", + "objectId": "22", + "median_load_time_in_MS": 7758, + "count": 1 + }, + { + "pageName": "Customer - Top 10 List", + "objectId": "111", + "median_load_time_in_MS": 2924, + "count": 1 + }, + { + "pageName": "Customer Card", + "objectId": "21", + "median_load_time_in_MS": 2363, + "count": 2 + }, + { + "pageName": "Customer - Order Summary", + "objectId": "107", + "median_load_time_in_MS": 2076, + "count": 1 + }, + { + "pageName": "Schedule a Report", + "objectId": "682", + "median_load_time_in_MS": 633, + "count": 2 + }, + { + "pageName": "HelpAndSupport", + "objectId": "-1", + "median_load_time_in_MS": 498, + "count": 21 + }, + { + "pageName": "PageSearchForm", + "objectId": "-1", + "median_load_time_in_MS": 422, + "count": 2 + } + ] + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "", + "text/html": "\n \n \n \n \n \n

Done (00:00.526): 10 records

\n \n " + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": "[{'pageName': 'Order Processor Role Center', 'objectId': '9006', 'median_load_time_in_MS': 24378, 'count': 25},\n {'pageName': 'Customer Templ. Card', 'objectId': '1382', 'median_load_time_in_MS': 24376, 'count': 1},\n {'pageName': 'Sales Order List', 'objectId': '9305', 'median_load_time_in_MS': 11465, 'count': 1},\n {'pageName': 'Customer List', 'objectId': '22', 'median_load_time_in_MS': 7758, 'count': 1},\n {'pageName': 'Customer - Top 10 List', 'objectId': '111', 'median_load_time_in_MS': 2924, 'count': 1},\n {'pageName': 'Customer Card', 'objectId': '21', 'median_load_time_in_MS': 2363, 'count': 2},\n {'pageName': 'Customer - Order Summary', 'objectId': '107', 'median_load_time_in_MS': 2076, 'count': 1},\n {'pageName': 'Schedule a Report', 'objectId': '682', 'median_load_time_in_MS': 633, 'count': 2},\n {'pageName': 'HelpAndSupport', 'objectId': '-1', 'median_load_time_in_MS': 498, 'count': 21},\n {'pageName': 'PageSearchForm', 'objectId': '-1', 'median_load_time_in_MS': 422, 'count': 2}]", + "text/html": "" + }, + "metadata": {}, + "execution_count": 60, + "output_type": "execute_result" + } + ], + "execution_count": 60 } ] } \ No newline at end of file