From 99162c18e388e7e47c68b220a0890a6c2fb13d1e Mon Sep 17 00:00:00 2001 From: Phillip Burch Date: Thu, 1 Oct 2020 15:57:16 -0500 Subject: [PATCH] Fix types --- .../containers/ml/modules/metrics_hosts/module_descriptor.ts | 4 ++-- .../containers/ml/modules/metrics_k8s/module_descriptor.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts b/x-pack/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts index 711ee76d42a6..7ea87c3d2132 100644 --- a/x-pack/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts +++ b/x-pack/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts @@ -73,7 +73,7 @@ const setUpModule = async ( const { job: defaultJobConfig } = getDefaultJobConfigs(id); // eslint-disable-next-line @typescript-eslint/naming-convention - const analysis_config = { + const analysis_config: any = { ...defaultJobConfig.analysis_config, }; @@ -139,7 +139,7 @@ const setUpModule = async ( ); }; -const getDefaultJobConfigs = (jobId: JobType) => { +const getDefaultJobConfigs = (jobId: JobType): { datafeed: any; job: any } => { switch (jobId) { case 'hosts_memory_usage': return { diff --git a/x-pack/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts b/x-pack/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts index 41c6df92fb37..eaf7489c84eb 100644 --- a/x-pack/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts +++ b/x-pack/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts @@ -73,7 +73,7 @@ const setUpModule = async ( const { job: defaultJobConfig } = getDefaultJobConfigs(id); // eslint-disable-next-line @typescript-eslint/naming-convention - const analysis_config = { + const analysis_config: any = { ...defaultJobConfig.analysis_config, }; @@ -144,7 +144,7 @@ const setUpModule = async ( ); }; -const getDefaultJobConfigs = (jobId: JobType) => { +const getDefaultJobConfigs = (jobId: JobType): { datafeed: any; job: any } => { switch (jobId) { case 'k8s_memory_usage': return {