Skip to content

Commit 3150eaa

Browse files
committed
adopt custom result index alias change
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
1 parent 0aec28e commit 3150eaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

public/expressions/helpers.ts

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export const getAnomalies = async (
5252
}
5353
);
5454
} else {
55+
if (!resultIndex.endsWith('*')) {
56+
resultIndex += '*';
57+
}
5558
anomalySummaryResponse = await getClient().post(
5659
`..${AD_NODE_API.DETECTOR}/results/_search/${resultIndex}/true/${dataSourceId}`,
5760
{

0 commit comments

Comments
 (0)