grafana/public/app/types
Sonia Aguilar 64ee42d01e
Alerting: Add limits and move state and label matching filters to the BE (#66267)
* WIP

* Add instance totals to combined rule. Use totals to display instances stats in the UI

* WIP

* add global summaries, fix TS errors

* fix useCombined test

* fix test

* use activeAt from rule when available

* Fix NaN in global stats

* Add no data total to global summary

* Add totals recalculation for filtered rules

* Fix instances totals, remove instances filtering from alert list view

* Update tests

* Fetch alerts considering filtering label matchers

* WIP - Fetch alerts appending state filter to endpoint

* Fix multiple values for state in request being applyied

* fix test

* Calculate hidden by for grafana managed alerts

* Use INSTANCES_DISPLAY_LIMIT constant for limiting alert instances instead of 1

* Rename matchers parameter according to API changes

* Fix calculating total number of grafana instances

* Rename matcher prop after previous change

* Display button to remove max instances limit

* Change matcher query param to be an array of strings

* Add test for paramsWithMatcherAndState method

* Refactor matcher to be an string array to be consistent with state

* Use matcher query string as matcher object type (encoded JSON)

* Avoind encoding matcher parameters twice

* fix tests

* Enable toggle for the limit/show all button and restore limit and filters when we come back from custom view

* Move getMatcherListFromString method to utils/alertmanager.ts

* Fix limit toggle button being shown when it's not necessary

* Use filteredTotals from be response to calculate hidden by count

* Fix variables not being replaced correctly

* Fix total shown to be all the instances filtered without limits

* Adress some PR review comments

* Move paramsWithMatcherAndState inside prometheusUrlBuilder method

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com>
2023-04-25 11:19:20 +02:00
..
jquery
accessControl.ts Authentication UI: Fix permissions for saving settings (#67086) 2023-04-24 09:57:05 +02:00
acl.ts RBAC: Make access control metadata for folders work with nested folders (#66464) 2023-04-21 15:05:11 +01:00
alerting.ts
apiKeys.ts Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab (#63411) 2023-03-01 15:34:53 +00:00
appEvent.ts
appNotifications.ts
config.ts
configAuth.ts SAML: Configuration UI (#64054) 2023-04-13 16:07:43 +02:00
dashboard.ts Dashboard: remove unused submenuEnabled property (#63289) 2023-02-12 18:10:29 +01:00
datasources.ts Datasource Onboarding: Prevent flickering of onboarding page after first load (#63360) 2023-02-24 11:48:30 +00:00
events.ts AppChrome: Unify logic for chromeless pages that should not have NavBar, CommandPalette, Search etc (#62281) 2023-02-02 09:53:06 +01:00
explore.ts Explore: Clear live logs (#64237) 2023-04-20 10:21:28 +02:00
folders.ts Folder: Replace folderId with folderUid (#58393) 2022-11-17 09:22:57 +01:00
index.ts SAML: Configuration UI (#64054) 2023-04-13 16:07:43 +02:00
ldap.ts
location.ts
lru-cache.d.ts
organization.ts
plugins.ts Chore: improve some types (#62363) 2023-02-01 10:50:34 +00:00
query.ts QueryGroup: Cleanup leftovers from hackathons (#67048) 2023-04-21 15:32:47 +02:00
serviceaccount.ts Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab (#63411) 2023-03-01 15:34:53 +00:00
settings.ts SAML: Configuration UI (#64054) 2023-04-13 16:07:43 +02:00
store.ts
suggestions.ts
supportBundles.ts Support Bundles: Improve creating bundle UX (#61611) 2023-01-17 17:50:14 +01:00
svg.d.ts
teams.ts Teams: Use generated TS types (#60618) 2023-01-04 14:08:03 +02:00
templates.ts
unified-alerting-dto.test.ts
unified-alerting-dto.ts Alerting: Add limits and move state and label matching filters to the BE (#66267) 2023-04-25 11:19:20 +02:00
unified-alerting.ts Alerting: Add limits and move state and label matching filters to the BE (#66267) 2023-04-25 11:19:20 +02:00
user.ts Auth: Fix orgrole picker disabled if isSynced user (#64033) 2023-03-22 17:41:59 +00:00
window.d.ts