mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[ML] Add TODO comments about possible code consolidation. (#136181)
This commit is contained in:
parent
2de673f665
commit
b65f0bd122
3 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue