Make search query in alert conditions configurable in the UI (#5212) #5277
* Make search query in alert conditions configurable in the UI This exposes a new query config field in the alert condition configuration. The value defaults to "*". The query is used to build a filter string for the alert condition search. We add the query string to the query filter for performance reasons. Fixes #3966 * Trim streamId and query strings * Use query config in field content value condition as well * Add HTTP API endpoints to test alert conditions There are two test endpoints, one to test existing alert conditions and one to test new alert conditions which have not been stored in the database yet. * Add missing NoAuditEvent annotations to test resources * Fix failing test because of missing stream id * Use AND operator and parentheses to combine streams and custom query Otherwise the generated query will be wrong. (cherry picked from commit 0533cfd)
bernd merged commit
Nov 8, 2018
2 of 3 checks passed
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.