[Inventory/Metric/Custom threshold] Specify fields instead of '*' in fieldCaps request (#184968)

Resolves https://github.com/elastic/kibana/issues/184909
This commit is contained in:
Bena Kansara 2024-06-07 15:39:37 +02:00 committed by GitHub
parent 2755b89429
commit 00153fd70f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -196,7 +196,7 @@ export const doFieldsExist = async (
// Get all supported fields
const respMapping = await esClient.fieldCaps({
index,
fields: '*',
fields,
});
const fieldsExisted: Record<string, boolean> = {};

View file

@ -130,7 +130,7 @@ export const doFieldsExist = async (
// Get all supported fields
const respMapping = await esClient.fieldCaps({
index,
fields: '*',
fields,
});
const fieldsExisted: Record<string, boolean> = {};