From b826155c81bcb8a3dfb68e763ff0eb1c4894fe79 Mon Sep 17 00:00:00 2001 From: ziyi Date: Wed, 27 Jul 2022 10:46:46 -0700 Subject: [PATCH] add prd for eventing and reporting command --- splunklib/searchcommands/eventing_command.py | 9 +++++++++ splunklib/searchcommands/internals.py | 4 ++++ splunklib/searchcommands/reporting_command.py | 9 +++++++++ 3 files changed, 22 insertions(+) diff --git a/splunklib/searchcommands/eventing_command.py b/splunklib/searchcommands/eventing_command.py index 27dc13a3a..4f371823d 100644 --- a/splunklib/searchcommands/eventing_command.py +++ b/splunklib/searchcommands/eventing_command.py @@ -123,6 +123,15 @@ class ConfigurationSettings(SearchCommand.ConfigurationSettings): ''') + partition_fields = ConfigurationSetting(readonly=True, value=[], doc=''' + Hash keys for parallel reduce + + Default: []. + + Supported by: SCP 2 + + ''') + # endregion # region Methods diff --git a/splunklib/searchcommands/internals.py b/splunklib/searchcommands/internals.py index 1ea2833db..4582dcb74 100644 --- a/splunklib/searchcommands/internals.py +++ b/splunklib/searchcommands/internals.py @@ -347,6 +347,10 @@ def validate_configuration_setting(specification, name, value): 'type': specification( type=(bytes, six.text_type), constraint=lambda value: value in ('events', 'reporting', 'streaming'), + supporting_protocols=[2]), + 'partition_fields': specification( + type=(list, set, tuple), + constraint=None, supporting_protocols=[2])} diff --git a/splunklib/searchcommands/reporting_command.py b/splunklib/searchcommands/reporting_command.py index 947086197..2d882dad8 100644 --- a/splunklib/searchcommands/reporting_command.py +++ b/splunklib/searchcommands/reporting_command.py @@ -222,6 +222,15 @@ class ConfigurationSettings(SearchCommand.ConfigurationSettings): Supported by: SCP 2 ''') + + partition_fields = ConfigurationSetting(readonly=False, value=[], doc=''' + Hash keys for parallel reduce + + Default: []. + + Supported by: SCP 2 + + ''') # endregion