Skip to content

Commit

Permalink
[Inventory/Metric/Custom threshold] Specify fields instead of '*' in …
Browse files Browse the repository at this point in the history
…fieldCaps request (#184968)

Resolves #184909
  • Loading branch information
benakansara authored Jun 7, 2024
1 parent 2755b89 commit 00153fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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> = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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> = {};
Expand Down

0 comments on commit 00153fd

Please sign in to comment.