Commit Graph

29 Commits

Author SHA1 Message Date
Fabian Reinartz
8d2bbc348b Simplify and rename notification info struct.
The delivered field was previously unused and is removed by this commit.
Only successful notifications are stored. The type was renamed to NotifyInfo.
2015-11-06 10:09:39 +01:00
Fabian Reinartz
a765ef9534 Add aggregation group unit test 2015-10-27 18:26:44 +01:00
Fabian Reinartz
78008cd012 Fix infinite recursion bug in Alert merge 2015-10-15 16:21:36 +02:00
Fabian Reinartz
5dc2f6e9b1 Add license headers 2015-10-11 17:24:49 +02:00
Fabian Reinartz
ce74f8363b Simplify initialization
No longer update components based on a new configuration. Generally,
destroying and recreating has no performance impact and is less
error-prone.
This also removes the Reloadable interface and simplifies the entire
startup contraption.
2015-10-11 16:54:39 +02:00
Fabian Reinartz
41821faf92 Use multi-error for notify-fanout 2015-10-11 12:40:43 +02:00
Fabian Reinartz
9b0ceacef8 Fix creation of model.Alert from types.Alert 2015-10-11 12:33:54 +02:00
Fabian Reinartz
7ef293d9bc Make loadable templates configurable 2015-10-09 11:06:04 +02:00
Fabian Reinartz
9bf18ec4a5 Always assume success on reload of valid config 2015-10-09 09:05:21 +02:00
Fabian Reinartz
856d5091c1 Implement merging of alerts on insert 2015-10-02 16:52:04 +02:00
Fabian Reinartz
4e381c7e64 Store model.Silence and restore types.Silence correctly 2015-10-01 22:16:44 +02:00
Fabian Reinartz
46e09e2b2c Switch to model.Silence 2015-10-01 17:50:15 +02:00
Fabian Reinartz
0600d6b47b Integrate new model types, separate internal and external types better 2015-10-01 15:46:10 +02:00
Fabian Reinartz
70f1be20da Update vendoring for alert type 2015-10-01 15:22:27 +02:00
Fabian Reinartz
d2a0a218aa Remove obsolete fingerprint method 2015-10-01 15:17:37 +02:00
Fabian Reinartz
0b4d58fbdb Switch to model.Alert 2015-10-01 14:53:49 +02:00
Fabian Reinartz
d40bb99cee Add proper sorting comparison for alerts 2015-09-30 18:44:53 +02:00
Fabian Reinartz
006939de12 Hide resolved it alert JSON if it was added via timeout 2015-09-30 14:53:05 +02:00
Fabian Reinartz
5ed89a72a5 Change to clearer alert time fields 2015-09-29 17:26:44 +02:00
Fabian Reinartz
064af8d11f Add alert status type and constants 2015-09-29 14:45:16 +02:00
Fabian Reinartz
331ad31401 Implement configuration reloading 2015-09-29 12:22:13 +02:00
Fabian Reinartz
365b641223 Verify stored notifies in deduping test 2015-09-28 22:02:41 +02:00
Fabian Reinartz
c40c31772f Rename Silencer to Muter 2015-09-28 14:13:01 +02:00
Fabian Reinartz
49da433478 Add notify and shared data source for providers 2015-09-27 19:50:24 +02:00
Fabian Reinartz
fac2ea95bc Rename alert payload to annotations, add validation 2015-09-27 14:37:05 +02:00
Fabian Reinartz
d332d8b648 Add JSON (un)marshalling for silences 2015-09-27 14:28:47 +02:00
Fabian Reinartz
95b12f8c30 Add silence API endpoints 2015-09-27 14:07:04 +02:00
Fabian Reinartz
89e8d82a1b Fix compile issues 2015-09-26 11:14:18 +02:00
Fabian Reinartz
c3b5b6288e Add shared types package 2015-09-25 14:38:22 +02:00