Skip to content
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
7 changes: 3 additions & 4 deletions public/pages/DetectorResults/containers/AnomalyResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,9 @@ export function AnomalyResults(props: AnomalyResultsProps) {
/>
<EuiText>
<p>
Attempting to initialize the detector with historical data. This
initializing process takes approximately{' '}
{get(detector, 'detectionInterval.period.interval', 10)}{' '}
minutes.
Attempting to initialize the detector with historical data.
This initializing process takes approximately 1 minute if
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to try and give any estimate if there is not enough consecutive data?

Copy link
Copy Markdown
Collaborator Author

@kaituo kaituo Jan 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have had that msg. Check the following in the same file:

const getInitProgressMessage = () => {
    return detector &&
      isDetectorInitializing &&
      !isHCDetector &&
      get(detector, 'initProgress.estimatedMinutesLeft')
      ? `The detector needs ${get(
          detector,
          'initProgress.estimatedMinutesLeft'
        )} minutes for initializing. If your data stream is not continuous, it may take even longer. `
      : '';
  };

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, wasn't sure where it was.

you have data in each of the last 40 consecutive intervals.
</p>
</EuiText>
</EuiFlexGroup>
Expand Down