diff --git a/client/src/components/Graph.vue b/client/src/components/Graph.vue index e2e71cb..36253c4 100644 --- a/client/src/components/Graph.vue +++ b/client/src/components/Graph.vue @@ -10,18 +10,20 @@ import { AnomalyHSR, TimeRange } from "@/types"; import { PatternPod } from "./pods/pattern_pod"; import { ThresholdPod } from './pods/threshold_pod'; import { AnomalyPod } from './pods/anomaly_pod'; -import { getMetrics } from '../services/metrics.service'; -import { getSegments, postSegment, deleteSegment } from '../services/segments.service'; + import { LineTimeSerie } from "@chartwerk/line-pod"; import { SegmentArray } from '@/types/segment_array'; import { Segment, SegmentId } from '@/types/segment'; -import _ from "lodash"; import { AnalyticUnitType } from '@/types/analytic_units'; -import { defineComponent, watch } from 'vue'; import { getHSRAnomaly } from "@/services/analytics.service"; +import { getMetrics } from '@/services/metrics.service'; +import { getSegments, postSegment, deleteSegment } from '@/services/segments.service'; + +import { defineComponent } from 'vue'; +import _ from "lodash"; // TODO: move to store async function resolveDataPatterns(range: TimeRange): Promise<{ @@ -117,7 +119,6 @@ async function resolveDataAnomaly(range: TimeRange): Promise<{ } } - // TODO: move to store async function addSegment(segment: Segment): Promise { try { @@ -147,7 +148,6 @@ async function _deleteSegment(from: number, to: number): Promise { } } - // TODO: convert to class component export default defineComponent({ name: 'Graph', @@ -222,8 +222,6 @@ export default defineComponent({ let cfg = _.clone(this.analyticUnitConfig); // TODO: get 10 (step) from API config cfg.seasonality = Math.ceil(Math.abs(from - to) / 10) * 10; - console.log("cfg.seasonality: " + cfg.seasonality); - this.$store.dispatch('patchConfig', { Anomaly: cfg }); } }, diff --git a/client/src/views/Home.vue b/client/src/views/Home.vue index fe2989d..817bae2 100644 --- a/client/src/views/Home.vue +++ b/client/src/views/Home.vue @@ -35,7 +35,7 @@
Hold
Z
to set seasonality timespan
- Confidence:
@@ -48,11 +48,12 @@