Skip to content

Commit

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

# Backport

This will backport the following commits from `main` to `8.14`:
- [[Inventory/Metric/Custom threshold] Specify fields instead of '*' in
fieldCaps request
(elastic#184968)](elastic#184968)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bena
Kansara","email":"69037875+benakansara@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-06-07T13:39:37Z","message":"[Inventory/Metric/Custom
threshold] Specify fields instead of '*' in fieldCaps request
(elastic#184968)\n\nResolves
elastic#184909
threshold] Specify fields instead of '*' in fieldCaps request
(elastic#184968)\n\nResolves
elastic#184909
threshold] Specify fields instead of '*' in fieldCaps request
(elastic#184968)\n\nResolves
elastic#184909"}]}]
BACKPORT-->
  • Loading branch information
benakansara committed Jun 7, 2024
1 parent 6ed8f59 commit 75a2786
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 @@ -195,7 +195,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 75a2786

Please sign in to comment.