Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add action item and message for init failue case due to invalid search query. #285

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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