From b1d4d1fe8d3c9cf2ae36b824254532403a2cdae6 Mon Sep 17 00:00:00 2001 From: Md Azam Date: Mon, 15 Jan 2024 09:40:04 -0400 Subject: [PATCH 1/3] Add query batchsize(length) in common config.json --- stix_shifter_modules/config.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stix_shifter_modules/config.json b/stix_shifter_modules/config.json index 1224b77f6..732232fcd 100644 --- a/stix_shifter_modules/config.json +++ b/stix_shifter_modules/config.json @@ -17,6 +17,13 @@ "type": "number", "previous": "connection.resultSizeLimit" }, + "batchsize": { + "default": 2000, + "min": 1, + "max": 10000, + "type": "number", + "optional": true + }, "time_range": { "default": 5, "min": 1, From 1b93a0a0cc5d57f449a9dacc20de42e0c2fa94c1 Mon Sep 17 00:00:00 2001 From: Md Azam Date: Wed, 24 Jan 2024 09:27:38 -0400 Subject: [PATCH 2/3] update parameter name --- stix_shifter_modules/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix_shifter_modules/config.json b/stix_shifter_modules/config.json index 732232fcd..1d709bf07 100644 --- a/stix_shifter_modules/config.json +++ b/stix_shifter_modules/config.json @@ -17,7 +17,7 @@ "type": "number", "previous": "connection.resultSizeLimit" }, - "batchsize": { + "batch_size": { "default": 2000, "min": 1, "max": 10000, From 386c58726ae93646ded70292d6e314f46ebc1404 Mon Sep 17 00:00:00 2001 From: Md Azam Date: Wed, 24 Jan 2024 09:43:41 -0400 Subject: [PATCH 3/3] add lang_en descriptions+hidden flag --- stix_shifter_modules/config.json | 3 ++- stix_shifter_modules/lang_en.json | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stix_shifter_modules/config.json b/stix_shifter_modules/config.json index 1d709bf07..09c842687 100644 --- a/stix_shifter_modules/config.json +++ b/stix_shifter_modules/config.json @@ -22,7 +22,8 @@ "min": 1, "max": 10000, "type": "number", - "optional": true + "optional": true, + "hidden": true }, "time_range": { "default": 5, diff --git a/stix_shifter_modules/lang_en.json b/stix_shifter_modules/lang_en.json index ffecd6d93..bb0c9b12f 100644 --- a/stix_shifter_modules/lang_en.json +++ b/stix_shifter_modules/lang_en.json @@ -8,6 +8,10 @@ "label": "Result size limit", "description": "The maximum number of entries or objects that are returned by search query. Valid input range is {{min}} to {{max}}." }, + "batch_size": { + "label": "Result length for datasource request", + "description": "The maximum results retrive in single API request to the datasource. This is not results limit. This value is mainly used for pagination." + }, "time_range": { "label": "Query time range", "description": "Time range for the search, in minutes, represented as last x minutes. Valid input range is {{min}} to {{max}}."