Skip to content

Commit

Permalink
Add action item and message for init failue case due to invalid searc…
Browse files Browse the repository at this point in the history
…h query. (opendistro-for-elasticsearch#285)

* Add action item and message for init failue case due to invalid search query. Issue:opendistro-for-elasticsearch#218
  • Loading branch information
yizheliu-amazon committed Aug 28, 2020
1 parent 5164d2d commit fabeb04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/pages/DetectorDetail/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ export const DETECTOR_INIT_FAILURES = Object.freeze({
cause: 'the detector is not defined',
actionItem: 'Define your detector and try again.',
},
INVALID_FEATURE_QUERY: {
// TODO: https://github.com/opendistro-for-elasticsearch/anomaly-detection/issues/218
//https://github.com/opendistro-for-elasticsearch/anomaly-detection/blob/master/src/main/java/com/amazon/opendistroforelasticsearch/ad/constant/CommonErrorMessages.java#L28
keyword: 'Invalid search query',
cause: 'the custom query caused an invalid feature aggregation',
actionItem:
'Revise the custom query in your feature aggregations and try again.',
},
UNKNOWN_EXCEPTION: {
//https://github.com/opendistro-for-elasticsearch/anomaly-detection/blob/development/src/main/java/com/amazon/opendistroforelasticsearch/ad/transport/AnomalyResultTransportAction.java#L438
keyword: 'We might have bugs',
Expand Down

0 comments on commit fabeb04

Please sign in to comment.