From 0e342197d2608e92bc9513f32f16ca04ff0f2755 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:29:18 -0500 Subject: [PATCH] add cardinality aggregation in big5 (#311) (#330) (cherry picked from commit 7c5ddaab4cba352d3a220d1ac7d571830b54fd57) Signed-off-by: bowenlan-amzn Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- big5/operations/default.json | 30 +++++++++++++++++++ .../test_procedures/common/big5-schedule.json | 14 +++++++++ 2 files changed, 44 insertions(+) diff --git a/big5/operations/default.json b/big5/operations/default.json index e791ce0e..6053acd8 100755 --- a/big5/operations/default.json +++ b/big5/operations/default.json @@ -847,6 +847,36 @@ } } }, + { + "name": "cardinality-agg-low", + "operation-type": "search", + "index": "{{index_name | default('big5')}}", + "body": { + "size": 0, + "aggs": { + "region": { + "cardinality": { + "field": "cloud.region" + } + } + } + } + }, + { + "name": "cardinality-agg-high", + "operation-type": "search", + "index": "{{index_name | default('big5')}}", + "body": { + "size": 0, + "aggs": { + "agent": { + "cardinality": { + "field": "agent.name" + } + } + } + } + }, { "name": "query-string-on-message", "operation-type": "search", diff --git a/big5/test_procedures/common/big5-schedule.json b/big5/test_procedures/common/big5-schedule.json index 7f563404..1f5bcf6a 100644 --- a/big5/test_procedures/common/big5-schedule.json +++ b/big5/test_procedures/common/big5-schedule.json @@ -329,4 +329,18 @@ "iterations": {{ test_iterations | default(100) | tojson }}, "target-throughput": {{ target_throughput | default(2) | tojson }}, "clients": {{ search_clients | default(1) }} +}, +{ + "operation": "cardinality-agg-low", + "warmup-iterations": {{ warmup_iterations | default(200) | tojson }}, + "iterations": {{ test_iterations | default(100) | tojson }}, + "target-throughput": {{ target_throughput | default(2) | tojson }}, + "clients": {{ search_clients | default(1) }} +}, +{ + "operation": "cardinality-agg-high", + "warmup-iterations": {{ warmup_iterations | default(200) | tojson }}, + "iterations": {{ test_iterations | default(100) | tojson }}, + "target-throughput": {{ target_throughput | default(2) | tojson }}, + "clients": {{ search_clients | default(1) }} }