Skip to content

Commit e14a5fc

Browse files
kaituoamitgalitz
authored andcommitted
Changed required minimum intervals in cold start message (#411)
Required minimum intervals to finish cold start is related to shingle size. This PR adds the shingle size in the computation and puts the result in the cold start message. Testing done: 1. verified changing shingle size will change the message. Signed-off-by: Kaituo Li <kaituo@amazon.com> (cherry picked from commit e7ac417)
1 parent 2eae68a commit e14a5fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public/pages/DetectorResults/containers/AnomalyResults.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import { detectorIsSample } from '../../Overview/utils/helpers';
6666
import { SampleIndexDetailsCallout } from '../../Overview/components/SampleIndexDetailsCallout/SampleIndexDetailsCallout';
6767
import { CoreStart } from '../../../../../../src/core/public';
6868
import { CoreServicesContext } from '../../../components/CoreServices/CoreServices';
69+
import { DEFAULT_SHINGLE_SIZE } from '../../../utils/constants';
6970

7071
interface AnomalyResultsProps extends RouteComponentProps {
7172
detectorId: string;
@@ -313,7 +314,8 @@ export function AnomalyResults(props: AnomalyResultsProps) {
313314
<p>
314315
Attempting to initialize the detector with historical data.
315316
This initializing process takes approximately 1 minute if
316-
you have data in each of the last 40 consecutive intervals.
317+
you have data in each of the last{' '}
318+
{32+get(detector, 'shingleSize', DEFAULT_SHINGLE_SIZE)}{' '} consecutive intervals.
317319
</p>
318320
</EuiText>
319321
</EuiFlexGroup>

0 commit comments

Comments
 (0)