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
  • Loading branch information
yizheliu-amazon committed Aug 25, 2020
1 parent 9e46462 commit 626c334
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/pages/DetectorDetail/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ 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: 'there exists invalid custom feature aggregation query',
actionItem: 'Revise your custom feature aggregation query 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 626c334

Please sign in to comment.