From 2379e9e7bf0d1f34375014018eb1ee750ff7a292 Mon Sep 17 00:00:00 2001 From: neptunian Date: Thu, 20 Jan 2022 15:35:49 -0500 Subject: [PATCH] fix type --- .../lib/setup/collection/get_collection_status.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts b/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts index f466b18e1a691..463ccf547d5db 100644 --- a/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts +++ b/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts @@ -291,16 +291,6 @@ function getUuidBucketName(productName: string) { } } -function matchesMetricbeatIndex(metricbeatIndex: string, index: string) { - if (index.includes(metricbeatIndex)) { - return true; - } - if (metricbeatIndex.includes('*')) { - return new RegExp(metricbeatIndex).test(index); - } - return false; -} - function isBeatFromAPM(bucket: Bucket) { const beatType = get(bucket, 'single_type.beat_type'); if (!beatType) {