grafana/pkg/services/ngalert/store
bla2ej 56c8661929
Alerting: Get alert rules on faults (#61248) (#63051)
* Alerting: get alert rules on faults (#61248)

Two functions used to fetch alert rules from DB are updated:
- GetAlertRulesForScheduling
- ListAlertRules
Rows are scanned one by one so good ones are returned.
Common Error is logged with indication how many
rules failed on deserialization.

Resolved: #61248

* updates from review comments
2023-02-21 08:54:20 -06:00
..
admin_configuration_store_mock.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
admin_configuration.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
alert_rule_test.go Alerting: Fix flaky TestIntegrationUpdateAlertRules (#61641) 2023-01-17 19:09:46 +00:00
alert_rule.go Alerting: Get alert rules on faults (#61248) (#63051) 2023-02-21 08:54:20 -06:00
alertmanager_test.go Alerting: Mark AM configuration as applied (#61330) 2023-02-02 14:45:17 -03:00
alertmanager.go Alerting: Change error log to warning and apply correct format when updating historic config (#62973) 2023-02-07 11:04:05 -03:00
database.go Alerting: Mark AM configuration as applied (#61330) 2023-02-02 14:45:17 -03:00
deltas_test.go Alerting: Allow alert rule pausing from API (#62326) 2023-02-01 13:15:03 +01:00
deltas.go Alerting: Allow alert rule pausing from API (#62326) 2023-02-01 13:15:03 +01:00
image_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
image.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
instance_database_test.go Alerting: Do not persist noop transition from Normal state. (#61201) 2023-01-13 18:29:29 -05:00
instance_database.go Alerting: Do not persist noop transition from Normal state. (#61201) 2023-01-13 18:29:29 -05:00
org.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
provisioning_store_test.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
provisioning_store.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
testing.go Alerting: Move fake rule store to the test utilities package (#56062) 2022-09-30 14:36:51 -05:00
transactions.go Alerting: Provisioning API - Notification Policies (#46755) 2022-04-05 16:48:51 -05:00