From 60e46a4dc006d7109623643d680e2a5046455d74 Mon Sep 17 00:00:00 2001 From: Pasquale De Vita <59291437+pasqualedevita@users.noreply.github.com> Date: Thu, 13 Apr 2023 17:15:14 +0200 Subject: [PATCH] fix: Apim DurationMs (#39) --- .../templates/api-management_queries/response_time.kusto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opex_dashboard/templates/api-management_queries/response_time.kusto b/src/opex_dashboard/templates/api-management_queries/response_time.kusto index 635660a..c56e6e4 100644 --- a/src/opex_dashboard/templates/api-management_queries/response_time.kusto +++ b/src/opex_dashboard/templates/api-management_queries/response_time.kusto @@ -4,7 +4,7 @@ AzureDiagnostics | where url_s matches regex "{{ endpoint|uri_to_regex }}" | summarize watermark=threshold, - duration_percentile_95=percentiles(DurationMs, 95) by bin(TimeGenerated, {{ timespan }}) + duration_percentile_95=percentiles(todouble(DurationMs)/1000, 95) by bin(TimeGenerated, {{ timespan }}) {% if is_alarm %} | where duration_percentile_95 > threshold {% else %}