AzureMonitor: remove duplicate query logic on the frontend (#17198)

* feat: AzureMonitor implements legend key on backend

To be able to remove the duplicated query logic on the
frontend, the backend code needs to implement alias
patterns for legend keys as well as allowing the default
list of allowed time grains to be overridden. Some metrics
do not support all the time grains and the auto timegrain
calculation can be incorrect if the list is not overridden.

* feat: AzureMonitor - removes duplicate query logic on frontend

* AzureMonitor small refactoring

Extracted method and tidied up the auto time grain
code.

* azuremonitor: support for auto time grains for alerting

Converts allowed timegrains into ms and saves in dashboard json.
This makes queries for alerting with an auto time grain work in
the same way as the frontend.

* chore: typings -> implicitAny count down to 3413

* azuremonitor: add more typings
This commit is contained in:
Daniel Lee
2019-07-04 22:47:24 +02:00
committed by GitHub
parent 55b63905ea
commit 7e95ded164
14 changed files with 397 additions and 699 deletions

View File

@@ -3,7 +3,7 @@
echo -e "Collecting code stats (typescript errors & more)"
ERROR_COUNT_LIMIT=3000
ERROR_COUNT_LIMIT=2945
DIRECTIVES_LIMIT=172
CONTROLLERS_LIMIT=139