From d17f6e4f4204f39a632b62154719866a5fddd3d9 Mon Sep 17 00:00:00 2001 From: ziyi Date: Fri, 8 Jul 2022 14:34:27 -0700 Subject: [PATCH] add prd support for eventing command --- splunklib/searchcommands/eventing_command.py | 9 +++++++++ splunklib/searchcommands/internals.py | 4 ++++ 2 files changed, 13 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])}