mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: bump @bsull/augurs to v0.6.0 (#96119)
This commit is contained in:
@@ -4300,9 +4300,6 @@ exports[`better eslint`] = {
|
|||||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "1"],
|
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "1"],
|
||||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "2"]
|
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "2"]
|
||||||
],
|
],
|
||||||
"public/app/features/trails/services/sorting.ts:5381": [
|
|
||||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
|
||||||
],
|
|
||||||
"public/app/features/transformers/FilterByValueTransformer/FilterByValueTransformerEditor.tsx:5381": [
|
"public/app/features/transformers/FilterByValueTransformer/FilterByValueTransformerEditor.tsx:5381": [
|
||||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "0"]
|
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "0"]
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -247,7 +247,7 @@
|
|||||||
"yargs": "^17.5.1"
|
"yargs": "^17.5.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bsull/augurs": "0.4.2",
|
"@bsull/augurs": "^0.6.0",
|
||||||
"@emotion/css": "11.13.4",
|
"@emotion/css": "11.13.4",
|
||||||
"@emotion/react": "11.13.3",
|
"@emotion/react": "11.13.3",
|
||||||
"@fingerprintjs/fingerprintjs": "^3.4.2",
|
"@fingerprintjs/fingerprintjs": "^3.4.2",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import init from '@bsull/augurs';
|
import init from '@bsull/augurs/outlier';
|
||||||
import { css } from '@emotion/css';
|
import { css } from '@emotion/css';
|
||||||
import { isNumber, max, min, throttle } from 'lodash';
|
import { isNumber, max, min, throttle } from 'lodash';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { OutlierDetector, OutlierOutput } from '@bsull/augurs';
|
import { OutlierDetector, OutlierOutput } from '@bsull/augurs/outlier';
|
||||||
import { memoize } from 'lodash';
|
import { memoize } from 'lodash';
|
||||||
|
|
||||||
import { DataFrame, doStandardCalcs, fieldReducers, FieldType, outerJoinDataFrames, ReducerID } from '@grafana/data';
|
import { DataFrame, doStandardCalcs, fieldReducers, FieldType, outerJoinDataFrames, ReducerID } from '@grafana/data';
|
||||||
@@ -81,11 +81,10 @@ const initOutlierDetector = (series: DataFrame[]) => {
|
|||||||
|
|
||||||
// Get number fields: these are our series.
|
// Get number fields: these are our series.
|
||||||
const joinedSeries = joined.fields.filter((f) => f.type === FieldType.number);
|
const joinedSeries = joined.fields.filter((f) => f.type === FieldType.number);
|
||||||
const nTimestamps = joinedSeries[0].values.length;
|
const points = joinedSeries.map((series) => new Float64Array(series.values));
|
||||||
const points = new Float64Array(joinedSeries.flatMap((series) => series.values as number[]));
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const detector = OutlierDetector.dbscan({ sensitivity: 0.4 }).preprocess(points, nTimestamps);
|
const detector = OutlierDetector.dbscan({ sensitivity: 0.4 }).preprocess(points);
|
||||||
outliers = detector.detect();
|
outliers = detector.detect();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type {
|
|||||||
OutlierDetector as AugursOutlierDetector,
|
OutlierDetector as AugursOutlierDetector,
|
||||||
OutlierDetectorOptions,
|
OutlierDetectorOptions,
|
||||||
OutlierOutput,
|
OutlierOutput,
|
||||||
} from '@bsull/augurs';
|
} from '@bsull/augurs/outlier';
|
||||||
|
|
||||||
export default function init() {}
|
export default function init() {}
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ export class OutlierDetector implements AugursOutlierDetector {
|
|||||||
detect(): OutlierOutput {
|
detect(): OutlierOutput {
|
||||||
return dummyOutliers;
|
return dummyOutliers;
|
||||||
}
|
}
|
||||||
preprocess(y: Float64Array, nTimestamps: number): AugursLoadedOutlierDetector {
|
preprocess(y: number[][] | Float64Array[]): AugursLoadedOutlierDetector {
|
||||||
return new LoadedOutlierDetector();
|
return new LoadedOutlierDetector();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
yarn.lock
10
yarn.lock
@@ -1703,10 +1703,10 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@bsull/augurs@npm:0.4.2":
|
"@bsull/augurs@npm:^0.6.0":
|
||||||
version: 0.4.2
|
version: 0.6.0
|
||||||
resolution: "@bsull/augurs@npm:0.4.2"
|
resolution: "@bsull/augurs@npm:0.6.0"
|
||||||
checksum: 10/b4806fed1daf76380577b4ca86c2bf94c00ce1033df0b8365229a55ff16bd2f864d3f9ca3f92faf284e62013b68e953be65ee78968931ba342be0e1c054c2e63
|
checksum: 10/0ba2ea0432f7d4c44ccec4d112e672f8d5d977407be42ff5995e1d6641b4b0238f97b9cdf13bc1fc066559bbd54e6fb00ad1f418014823a6c22af619e7a29c6a
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -18671,7 +18671,7 @@ __metadata:
|
|||||||
"@betterer/betterer": "npm:5.4.0"
|
"@betterer/betterer": "npm:5.4.0"
|
||||||
"@betterer/cli": "npm:5.4.0"
|
"@betterer/cli": "npm:5.4.0"
|
||||||
"@betterer/eslint": "npm:5.4.0"
|
"@betterer/eslint": "npm:5.4.0"
|
||||||
"@bsull/augurs": "npm:0.4.2"
|
"@bsull/augurs": "npm:^0.6.0"
|
||||||
"@cypress/webpack-preprocessor": "npm:6.0.2"
|
"@cypress/webpack-preprocessor": "npm:6.0.2"
|
||||||
"@emotion/css": "npm:11.13.4"
|
"@emotion/css": "npm:11.13.4"
|
||||||
"@emotion/eslint-plugin": "npm:11.12.0"
|
"@emotion/eslint-plugin": "npm:11.12.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user