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
9bf18ec4a5
Always assume success on reload of valid config
2015-10-09 09:05:21 +02:00
Fabian Reinartz
42e1963715
Ensure minimum notification context timeout
2015-10-09 08:58:44 +02:00
Fabian Reinartz
0a5a7691fe
Encapsulate context values in package.
...
Setting and getting of context values are done via helper
methods in the notifier package. The used keys are unexported. Thus,
we ensure that external code cannot overwrite the values and the type
is always correct.
2015-10-09 08:43:39 +02:00
Fabian Reinartz
638b3f9f40
Use a fixed now time through notify pipeline
2015-10-09 08:26:41 +02:00
Fabian Reinartz
d1379a3f71
Move repeat_interval and send_resolved to route configuration
2015-10-08 10:50:37 +02:00
Fabian Reinartz
f48c95eb19
Test restartability with persistence
2015-10-07 16:19:37 +02:00
Fabian Reinartz
03272174f2
Pass aggregation group identifier through context
2015-10-01 15:18:19 +02:00
Fabian Reinartz
2b6d40c926
Add flush logging to aggregation groups
2015-09-30 14:53:52 +02:00
Fabian Reinartz
5ed89a72a5
Change to clearer alert time fields
2015-09-29 17:26:44 +02:00
Fabian Reinartz
c3b36790eb
Move notifiers into their own package
2015-09-29 15:36:36 +02:00
Fabian Reinartz
331ad31401
Implement configuration reloading
2015-09-29 12:22:13 +02:00
Fabian Reinartz
7224f33c5b
Add debug logging for incoming alerts
2015-09-29 12:00:30 +02:00
Fabian Reinartz
54a8d6ea04
Adjust alert subscription behavior.
...
Rename IterActive to Subscribe. The returned iterator now
returns all alerts with pending notifications which may also include
resolved alerts.
2015-09-29 10:00:02 +02:00
Fabian Reinartz
67f5e89816
Switch to common/log package
2015-09-28 12:12:27 +02:00
Fabian Reinartz
95b57b3622
Add deduping notifier
2015-09-27 19:50:41 +02:00
Fabian Reinartz
e10ae037d0
Extract notifiers from dispatcher to routed notifier
2015-09-27 13:09:02 +02:00
Fabian Reinartz
afe7194f6c
Fix notifyFunc specification
2015-09-26 18:12:56 +02:00
Fabian Reinartz
797bfa1468
Fix group and repeat interval differentiation
2015-09-26 18:03:54 +02:00
Fabian Reinartz
c05c028975
Fix deletion of old alerts in aggregation groups
2015-09-26 17:54:49 +02:00
Fabian Reinartz
79eac01917
Change notify interface to multiple alerts
2015-09-26 14:12:55 +02:00
Fabian Reinartz
4b58d30f4d
Add safer AlertIterator interface
2015-09-26 11:14:18 +02:00
Fabian Reinartz
89e8d82a1b
Fix compile issues
2015-09-26 11:14:18 +02:00
Fabian Reinartz
1f9886e5ca
Migrate to types package
2015-09-25 14:38:57 +02:00
Fabian Reinartz
17dce696c9
Move manager package to top level
2015-09-25 13:46:49 +02:00