Skip to content

Commit

Permalink
fix: Apim DurationMs (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualedevita authored Apr 13, 2023
1 parent bfc92ff commit 60e46a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 60e46a4

Please sign in to comment.