From 696520ef8a2f3fbe8ea119ee174da679a12e596a Mon Sep 17 00:00:00 2001 From: Shahzad Date: Tue, 15 Apr 2025 20:15:02 +0200 Subject: [PATCH] [Custom threshold rule] Allow group for ip type fields !! (#216062) Allow group by for ip fields !! --------- Co-authored-by: Faisal Kanout Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 83f3d614ccb66bca3aa626a6db39c0f41eb1a9f1) --- .../public/components/custom_threshold/components/group_by.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_solution/observability/public/components/custom_threshold/components/group_by.tsx b/x-pack/plugins/observability_solution/observability/public/components/custom_threshold/components/group_by.tsx index 54047f42971f2..5a7eade17c7da 100644 --- a/x-pack/plugins/observability_solution/observability/public/components/custom_threshold/components/group_by.tsx +++ b/x-pack/plugins/observability_solution/observability/public/components/custom_threshold/components/group_by.tsx @@ -52,7 +52,7 @@ export function GroupBy({ options, onChange, fields, ...rest }: Props) { singleSelection={false} selectedOptions={selectedOptions} options={fields - .filter((f) => f.aggregatable && f.type === 'string') + .filter((f) => f.aggregatable && (f.type === 'string' || f.type === 'ip')) .map((f) => ({ label: f.name }))} onChange={handleChange} isClearable={true}