From 431af67324c52a58e8b7dfc4b6477f059b0e319e Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Mon, 19 Jun 2023 17:07:05 +0000 Subject: [PATCH] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../server/lib/risk_engine/configurations.ts | 2 +- .../server/lib/risk_engine/risk_engine_data_client.ts | 8 +++----- .../server/lib/risk_engine/utils/create_datastream.ts | 6 +++--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/security_solution/server/lib/risk_engine/configurations.ts b/x-pack/plugins/security_solution/server/lib/risk_engine/configurations.ts index 2b15cd373baf0..64b31b2c705a5 100644 --- a/x-pack/plugins/security_solution/server/lib/risk_engine/configurations.ts +++ b/x-pack/plugins/security_solution/server/lib/risk_engine/configurations.ts @@ -5,7 +5,7 @@ * 2.0. */ import type { FieldMap } from '@kbn/alerts-as-data-utils'; -import { IIndexPatternString } from './utils/create_datastream'; +import type { IIndexPatternString } from './utils/create_datastream'; export const ilmPolicy = { _meta: { diff --git a/x-pack/plugins/security_solution/server/lib/risk_engine/risk_engine_data_client.ts b/x-pack/plugins/security_solution/server/lib/risk_engine/risk_engine_data_client.ts index 772046a6b4438..90c4dd205ebe9 100644 --- a/x-pack/plugins/security_solution/server/lib/risk_engine/risk_engine_data_client.ts +++ b/x-pack/plugins/security_solution/server/lib/risk_engine/risk_engine_data_client.ts @@ -20,7 +20,7 @@ import { totalFieldsLimit, mappingComponentName, ilmPolicyName, - ilmPolicy + ilmPolicy, } from './configurations'; import { createDataStream } from './utils/create_datastream'; @@ -96,10 +96,8 @@ export class RiskEngineDataClient { }, } as ClusterPutComponentTemplateRequest, totalFieldsLimit, - }) - ]) - - + }), + ]); await createOrUpdateIndexTemplate({ logger: this.options.logger, diff --git a/x-pack/plugins/security_solution/server/lib/risk_engine/utils/create_datastream.ts b/x-pack/plugins/security_solution/server/lib/risk_engine/utils/create_datastream.ts index 81b8deffa90c2..8dead4fc954e4 100644 --- a/x-pack/plugins/security_solution/server/lib/risk_engine/utils/create_datastream.ts +++ b/x-pack/plugins/security_solution/server/lib/risk_engine/utils/create_datastream.ts @@ -167,9 +167,9 @@ export const createDataStream = async ({ })); logger.debug( - `Found ${dataStreams.length} concrete indices for ${ - indexPatterns.alias - } - ${JSON.stringify(dataStreams)}` + `Found ${dataStreams.length} concrete indices for ${indexPatterns.alias} - ${JSON.stringify( + dataStreams + )}` ); } catch (error) { // 404 is expected if no ds have been created