Joe Blubaugh
7312a2dab0
Alerting: Mark all tests that interact with the database as Integration tests. ( #54875 )
...
Previously, two tests were not explicitly marked as integration tests
and so were not run against all 3 supported databases in the CI
environment.
2022-10-10 01:54:54 -04:00
Alexander Weaver
d66ed6fe35
Alerting: Move stray model structs in store package to model package ( #55968 )
...
* Move stray command structs to model package like the rest
* Fix broken references
2022-09-29 15:47:56 -05:00
Yuriy Tseretyan
76ea0b15ae
Alerting: Scheduler to fetch folders along with rules ( #52842 )
...
* Update GetAlertRulesForScheduling to query for folders (if needed)
* Update scheduler's alertRulesRegistry to cache folder titles along with rules
* Update rule eval loop to take folder title from the
* Extract interface RuleStore
* Pre-fetch the rule keys with the version to detect changes, and query the full table only if there are changes.
2022-08-31 11:08:19 -04:00
Yuriy Tseretyan
6e1e4a4215
Alerting: Update DbStore to use disabled orgs from the config ( #52156 )
...
* update DbStore to use UnifiedAlerting settings
* remove disabled orgs from scheduler and use config in db store instead
* remove test
2022-07-15 14:13:30 -04:00
Yuriy Tseretyan
c314ce48c7
Alerting: Support for optimistic locking for alert rules ( #50274 )
...
* add support for optimistic locking for alert_rule table
* return 409 in the case of opitimistic lock
2022-06-13 12:15:28 -04:00