+
+
+ Set the number of intervals to consider in a detection window for
+ your model. The anomaly detector expects the shingle size to be in
+ the range of 1 and 60. The default shingle size is 8. We recommend
+ that you don't choose 1 unless you have two or more features.
+ Smaller values might increase recall but also false positives.
+ Larger values might be useful for ignoring noise in a signal.
+
+
+
+
+
+
+ >
+ );
+};
+
+export default ShingleSize;
diff --git a/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/index.js b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/index.js
new file mode 100644
index 00000000..c0d80471
--- /dev/null
+++ b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/index.js
@@ -0,0 +1,131 @@
+import React, { useEffect, useState } from 'react';
+import {
+ EuiText,
+ EuiHorizontalRule,
+ EuiFlexItem,
+ EuiFlexGroup,
+ EuiFlyoutHeader,
+ EuiFlyoutBody,
+ EuiTitle,
+ EuiCheckableCard,
+ EuiSpacer,
+ EuiFlyout,
+} from '@elastic/eui';
+// import {
+// OuiCheckableCard
+// } from '@elastic/eui';
+import './styles.scss';
+import { EmbeddablePanel } from '../../../../../../src/plugins/embeddable/public';
+import DetectorDetails from './DetectorDetails';
+import Features from './Features';
+
+const accordions = [
+ 'detectorDetails',
+ 'features',
+ 'shingleSize',
+ 'alerts',
+ 'triggers',
+].reduce((acc, cur) => ({ ...acc, [cur]: cur }), {});
+
+function CreateAnomalyDetector({ embeddable }) {
+ const [radio, setRadio] = useState('createRadio');
+ const [accordionOpen, setAccordionOpen] = useState(accordions.triggers);
+
+ return (
+