Martijn van Groningen
203cf5c024
Remove redundant config manager start checking
...
Original commit: elastic/x-pack-elasticsearch@5369765398
2014-12-05 16:02:28 +01:00
Martijn van Groningen
984d7d615a
removed log statements
...
Original commit: elastic/x-pack-elasticsearch@c4b7b16cd4
2014-12-05 15:36:18 +01:00
Martijn van Groningen
aeacbe44ca
Removed redundant if statement
...
Original commit: elastic/x-pack-elasticsearch@2de43dc7d5
2014-12-05 15:34:44 +01:00
Martijn van Groningen
1258a4c327
Renamed ConfigManager#isReady() to ConfigManager#start()
...
Add ConfigManager#stop()
Simplified config loading
smpt alert action settings are now also updated
Original commit: elastic/x-pack-elasticsearch@acb180f88c
2014-12-05 15:14:24 +01:00
Brian Murphy
920f7ea2a9
More changes for configuration manager and email action renaming.
...
Original commit: elastic/x-pack-elasticsearch@1c5087e79a
2014-12-05 12:07:31 +00:00
Brian Murphy
d8b751f6ed
Change to support name change of email alert action.
...
Original commit: elastic/x-pack-elasticsearch@d8bba3194b
2014-12-05 12:07:31 +00:00
Brian Murphy
d4f8bf0d2c
Fix test to pass in a dummy cluster state when readying the ConfigManager.
...
Original commit: elastic/x-pack-elasticsearch@e085844f9f
2014-12-05 12:07:31 +00:00
Brian Murphy
1f49c9199d
Changes after review.
...
Original commit: elastic/x-pack-elasticsearch@a5fac88f19
2014-12-05 12:07:31 +00:00
Brian Murphy
d70164de4d
Rename EmailAlertAction
...
Original commit: elastic/x-pack-elasticsearch@35e819cdf2
2014-12-05 12:06:42 +00:00
Brian Murphy
6791841f42
Changes after review.
...
Original commit: elastic/x-pack-elasticsearch@0a9055b918
2014-12-05 12:05:57 +00:00
Brian Murphy
31173507a5
Add actions and listeners for Configuration.
...
Add transport actions for configuration.
Add Listener so that components can listen for config changes.
Original commit: elastic/x-pack-elasticsearch@bab02770d9
2014-12-05 12:05:57 +00:00
Brian Murphy
d3ec7f40ba
Add tests for configuration manager.
...
Original commit: elastic/x-pack-elasticsearch@9c284fc4c6
2014-12-05 12:05:57 +00:00
Brian Murphy
8fa42a581f
Configuration : Add ability to configure alerting by creating .alerts/config/<name> documents in the index.
...
This commit adds the ConfigurationManager which the components use to load configuration from the index.
The configuration manager exposes an isReady method which components should not start until it is returns true.
Original commit: elastic/x-pack-elasticsearch@96a2f9f44f
2014-12-05 12:05:57 +00:00
Martijn van Groningen
6fd5e5202e
change readme file to asciidoc
...
Original commit: elastic/x-pack-elasticsearch@91b9c87fa6
2014-12-04 17:04:35 +01:00
Martijn van Groningen
a4f0077a2a
Fix tests differently
...
Original commit: elastic/x-pack-elasticsearch@00ec42c29b
2014-12-04 16:55:32 +01:00
Brian Murphy
cc9fac0f93
TEST: Fix AbstractAlertingTests
...
Original commit: elastic/x-pack-elasticsearch@1611f84a41
2014-12-04 15:40:18 +00:00
Brian Murphy
3f4d469d4a
FIX: Fixes after merge fail.
...
Original commit: elastic/x-pack-elasticsearch@6bab2d2640
2014-12-04 15:10:18 +00:00
Brian Murphy
4e825e7fac
Merge branch 'master' of https://github.com/elasticsearch/elasticsearch-alerts
...
Original commit: elastic/x-pack-elasticsearch@0707d65b2c
2014-12-04 14:55:26 +00:00
Brian Murphy
f175b298b4
Add payload search test
...
Original commit: elastic/x-pack-elasticsearch@9fba7e97d1
2014-12-04 14:55:08 +00:00
Brian Murphy
b68d7e5554
Changes for payload merge.
...
Original commit: elastic/x-pack-elasticsearch@7989471378
2014-12-04 14:54:20 +00:00
Brian Murphy
14ca6ec300
Add payload search and response to AlertActionEntry.
...
Original commit: elastic/x-pack-elasticsearch@b88b63e8a9
2014-12-04 14:31:14 +00:00
Brian Murphy
8375788839
Merge result from rebase.
...
Original commit: elastic/x-pack-elasticsearch@7e091273da
2014-12-04 14:30:04 +00:00
Martijn van Groningen
e09fface02
adjust formatting
...
Original commit: elastic/x-pack-elasticsearch@aeabde439e
2014-12-04 13:53:09 +01:00
Martijn van Groningen
83f7fba1e1
Docs: Moved getting started to dedicated asciidoc file and added some more general documentation.
...
Original commit: elastic/x-pack-elasticsearch@2cddf76cd6
2014-12-04 12:53:18 +01:00
Martijn van Groningen
d3dcecbd77
Changed visibility of setters and made naming of setters and getters consistent
...
Original commit: elastic/x-pack-elasticsearch@c9cc736012
2014-12-01 18:52:02 +01:00
Martijn van Groningen
8e8d360fd2
Test: ensure a no action entry has been fired
...
Original commit: elastic/x-pack-elasticsearch@0e6d915669
2014-11-28 16:32:09 +01:00
Martijn van Groningen
8910a1f284
Let the xcontent type of alert history documents be based on the xcontent type of alert documents.
...
Closes elastic/elasticsearch#54
Original commit: elastic/x-pack-elasticsearch@e03bf5d3bf
2014-11-28 15:54:32 +01:00
Martijn van Groningen
c094430584
Moved the stopping log info message
...
Original commit: elastic/x-pack-elasticsearch@0391704846
2014-11-28 15:36:34 +01:00
Martijn van Groningen
b883641b01
Also check if the refresh was successful on all the shards it was supposed to execute.
...
Original commit: elastic/x-pack-elasticsearch@ab867346e4
2014-11-28 12:49:51 +01:00
Martijn van Groningen
737e9567b9
Alert action manager: Start the queue reader thread with self maintained thread instead of using thread pool.
...
This gives us more control over interrupting and joining this thread during stopping, so we have a good moment in time to clear the queue.
Original commit: elastic/x-pack-elasticsearch@ed3f85fa75
2014-11-27 17:22:22 +01:00
Martijn van Groningen
0ec1f66c60
Test: Run refresh before the search on metadata occurs.
...
Original commit: elastic/x-pack-elasticsearch@2097f01458
2014-11-27 17:20:32 +01:00
Martijn van Groningen
ac715134b3
Increased logging
...
Original commit: elastic/x-pack-elasticsearch@39093540fd
2014-11-27 15:46:41 +01:00
Brian Murphy
fbec93d941
This adds metadata to alerts that are copied to the action entries for this alert.
...
Original commit: elastic/x-pack-elasticsearch@0abfc22421
2014-11-27 14:00:28 +00:00
Martijn van Groningen
b54aea7c14
Test: We can't be sure how often an alert has been fired, so these asserts should by in the atleast mindset.
...
Original commit: elastic/x-pack-elasticsearch@d4195eb3c0
2014-11-27 14:27:56 +01:00
Martijn van Groningen
c29e3c9611
But we still need to clear if loading fails
...
Original commit: elastic/x-pack-elasticsearch@69bf786e81
2014-11-27 14:07:20 +01:00
Martijn van Groningen
385ea45b7c
If loading or alerts or alert entries fail the alert manager should retry and if the search response are partial alert manager should retry as well.
...
Original commit: elastic/x-pack-elasticsearch@ea6a5a6372
2014-11-27 13:57:09 +01:00
Martijn van Groningen
6da23d412a
When stopping alert manager wait for ongoing operations to complete.
...
Original commit: elastic/x-pack-elasticsearch@646e534628
2014-11-27 13:36:09 +01:00
Martijn van Groningen
27f83bb621
Clear the queue once the reader thread sees that it needs to stop.
...
Original commit: elastic/x-pack-elasticsearch@b70a224ff1
2014-11-27 12:14:30 +01:00
Martijn van Groningen
1cd5ae6a31
Added assertion
...
Original commit: elastic/x-pack-elasticsearch@3aae405242
2014-11-27 11:40:56 +01:00
Martijn van Groningen
29dd1bb888
Removed error log for null values
...
Original commit: elastic/x-pack-elasticsearch@4477fc1c2a
2014-11-27 10:17:51 +01:00
Martijn van Groningen
775f1cb878
Increased logging
...
Original commit: elastic/x-pack-elasticsearch@375279fca5
2014-11-27 09:53:10 +01:00
Martijn van Groningen
45ee1d2d9b
Test: Added test that uses an agg in a trigger.
...
Original commit: elastic/x-pack-elasticsearch@ad87b18aa5
2014-11-26 23:31:40 +01:00
Martijn van Groningen
3965cb194c
Make sure that the alerts templates get applied and disabled test template since it conflicts with the alerts templates.
...
Original commit: elastic/x-pack-elasticsearch@ddd178da78
2014-11-26 23:23:15 +01:00
Martijn van Groningen
e4d10c58a9
Core: load alert store before the action manager, b/c action depends on alert store
...
Original commit: elastic/x-pack-elasticsearch@6aa3cb33b0
2014-11-26 22:51:34 +01:00
Martijn van Groningen
56a121109d
Simplified getAlertHistoryIndexNameForTime()
...
Original commit: elastic/x-pack-elasticsearch@08ce6daf75
2014-11-26 22:38:40 +01:00
Martijn van Groningen
4048bfe55c
Removed explicit delete index calls, because it redundant and the test framework wipes the clusters between tests.
...
Original commit: elastic/x-pack-elasticsearch@eebeef3bee
2014-11-26 22:18:19 +01:00
Martijn van Groningen
6b4f68fcb3
Test: made the simple no master node test more useful
...
Original commit: elastic/x-pack-elasticsearch@4ffc11d702
2014-11-26 22:00:26 +01:00
Martijn van Groningen
168bed9d32
Restored some code and fix the assert trigger methods
...
Original commit: elastic/x-pack-elasticsearch@7ca18b77b9
2014-11-26 21:56:13 +01:00
Brian Murphy
871274adbd
Add back in the exists checks for the alert history indices.
...
Original commit: elastic/x-pack-elasticsearch@a170742e56
2014-11-26 18:17:31 +00:00
Brian Murphy
87e056d762
Fix missing index issue by explicitly creating the index if implicit creation fails
...
This really shouldn't be happening.
Original commit: elastic/x-pack-elasticsearch@7d334ec76f
2014-11-26 18:10:52 +00:00