[ML] Add TODO comments about possible code consolidation. (#136181)

This commit is contained in:
Walter Rafelsberger 2022-07-12 13:15:28 +02:00 committed by GitHub
parent 2de673f665
commit b65f0bd122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -10,6 +10,9 @@ import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import React from 'react';
// TODO Consolidate with duplicate component `CorrelationsProgressControls` in
// `x-pack/plugins/apm/public/components/app/correlations/progress_controls.tsx`
interface ProgressControlProps {
progress: number;
progressMessage: string;

View file

@ -15,6 +15,9 @@ import { ChangePoint } from '../../../common/types';
import { getQueryWithParams } from './get_query_with_params';
import { getRequestBase } from './get_request_base';
// TODO Consolidate with duplicate `fetchDurationFieldCandidates` in
// `x-pack/plugins/apm/server/routes/correlations/queries/fetch_failed_events_correlation_p_values.ts`
export const getChangePointRequest = (
params: AiopsExplainLogRateSpikesSchema,
fieldName: string

View file

@ -16,6 +16,9 @@ import type { AiopsExplainLogRateSpikesSchema } from '../../../common/api/explai
import { getQueryWithParams } from './get_query_with_params';
import { getRequestBase } from './get_request_base';
// TODO Consolidate with duplicate `fetchPValues` in
// `x-pack/plugins/apm/server/routes/correlations/queries/fetch_duration_field_candidates.ts`
const POPULATED_DOC_COUNT_SAMPLE_SIZE = 1000;
const SUPPORTED_ES_FIELD_TYPES = [