-
Notifications
You must be signed in to change notification settings - Fork 18
Add 'No data' state for historical detectors #364
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ export enum DETECTOR_STATE { | |
FEATURE_REQUIRED = 'Feature required', | ||
INIT_FAILURE = 'Initialization failure', | ||
UNEXPECTED_FAILURE = 'Unexpected failure', | ||
NO_DATA = 'No data', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not related with this PR. But we may need to test more edge cases like not enough data, exceed our max running AD task limit etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, agreed. I think this "no data" case can be pretty common, so definitely good to have it separated here, but definitely doesn't cover all cases that would currently fall under the 'Unexpected failure' state. I'm assuming those other cases would fall under the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we can also parse the error message for "FAILED" state. But not so easy for exceptions which has no readable error message. |
||
} | ||
|
||
export enum SAMPLE_TYPE { | ||
|
@@ -83,3 +84,5 @@ export const ENTITY_NAME_PATH_FIELD = 'entity.name'; | |
|
||
export const DOC_COUNT_FIELD = 'doc_count'; | ||
export const KEY_FIELD = 'key'; | ||
|
||
export const NO_DATA_ERROR_MSG = 'There is no data in the detection date range'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: change
Five
toFollowing
, so that we don't need to change it every time we have new checks.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, changed.