Commit Graph

61 Commits (b94de101cd95b23f0266cd61e311f09ae8ad7592)

Author SHA1 Message Date
Torkel Ödegaard 9a598be4f7 Fixed failing unit test 7 years ago
bergquist e218cc7637 docs: updates docs to refer to using uid 7 years ago
Pavel Bakulev f461d52004 Converted notification id to uid via fmt for old alert notification settings 7 years ago
Pavel Bakulev 2de32756c2 Returned id for alert notifications which were created without uid 7 years ago
Pavel Bakulev 4bcace567b Formatted errors to err 7 years ago
Pavel Bakulev f132e929ce Added uid for alert notifications 7 years ago
bergquist 70385119bc removes d in disableResolvedMessage 7 years ago
Dave Waters c4dcf5a4ee fix gofmt, add test, correct noted concerns with default value 7 years ago
Dave Waters 6376154b16 add channel option to disable the resolved alert (OK Message) that is sent when condition returns to normal. 7 years ago
Marcus Efraimsson 418f77e70e
get or create alert notification should use transaction 7 years ago
bergquist 7b781e4c3c use notification state id instead of notifier id 7 years ago
bergquist 67e5f62514 move version conflict logging for mark as complete to sqlstore package 7 years ago
bergquist 9022e871e3 avoid sending full notification state to pending/complete 7 years ago
bergquist 341d8af637 rename GetNotificationStateQuery to GetOrCreateNotificationStateQuery 7 years ago
bergquist 7f1d7cefc0 reminder: uses UpdatedAt to track state changes. 7 years ago
bergquist 75f832cda8 use alert state changes counter as secondary version 7 years ago
Marcus Efraimsson 1be8fb76b8
cleanup alert_notification_state when deleting alert rules and channels 7 years ago
Marcus Efraimsson 5ec086dc56
don't notify if notification state pending 7 years ago
Marcus Efraimsson d412aafb7e
remove unused code 7 years ago
Marcus Efraimsson 67c58fa5e4
fix set sent_at on complete 7 years ago
Marcus Efraimsson c1763508e0
handle pending and completed state for alert notifications 7 years ago
Marcus Efraimsson 69cc24ea3f
wip: test get alert notification state 7 years ago
Leonard Gram 1a75aa54de wip: impl so that get alertstate also creates it if it does not exist 7 years ago
bergquist 15ce474639 wip 7 years ago
Marcus Efraimsson d093244282
sqlstore: add support for checking if error is constraint validation error 7 years ago
bergquist c5278af6c4 add support for mysql and postgres unique index error codes 7 years ago
bergquist 3fab616239 implement sql queries for transactional alert reminders 7 years ago
bergquist ff79f80685 initial rename refactoring 7 years ago
bergquist b04052f515 alerting: move all notification conditions to defaultShouldNotify 7 years ago
Mario Trangoni bb5aaa2dce pkg/services/sqlstore/alert_notification.go: Simplify err check 7 years ago
Mario Trangoni f73236f8f4 pkg/services/sqlstore: Fix x.Sql is deprecated: use SQL instead. (megacheck) 7 years ago
bergquist 396f8e6464 notifications: read without tran, write with tran 8 years ago
bergquist 83a12afc07 adds tests for journaling sql operations 8 years ago
bergquist 12bf5c225a tests for defaultShouldNotify 8 years ago
bergquist f4b089d551 notifications: make journaling ctx aware 8 years ago
bergquist 4a8e9cf93f removes more unused code 8 years ago
bergquist 850aa21d45 removes unused code 8 years ago
bergquist 171a38df99 alerting: fixes broken table rename 8 years ago
bergquist 7333d7b8d4 alerting: invert sendOnce to sendReminder 8 years ago
bergquist 93124f38fa alerting: only check frequency when not send once 8 years ago
bergquist 86e65f84f9 alerting: fixes invalid error handling 8 years ago
John Baublitz bdf433594a Implement code review changes 8 years ago
John Baublitz c0a9e5cf1d Fix tests 8 years ago
John Baublitz fca97535d1 Fix multiple bugs 8 years ago
John Baublitz 3cb0e27e1c Revert changes post code review and move them to notification page 8 years ago
Karsten Weiss be2d635078 Simplify error returns (gosimple) 8 years ago
bergquist ea988a37dd tech: avoid using deprecated functions 8 years ago
Torkel Ödegaard 359421b5e8 refactor: sqlstore inTransaction consolidated to one version, fixes #8376 9 years ago
bergquist e5c64732f1 fix(sql): Add boolstr to all dialects 9 years ago
bergquist 2ca7284a56 tech(notifications): splitt into 3 queries 9 years ago