splunklib.searchcommands.validators¶
-
class
splunklib.searchcommands.validators.
Fieldname
¶ Validates field name option values.
-
class
splunklib.searchcommands.validators.
Validator
¶ Base class for validators that check and format search command options.
You must inherit from this class and override
Validator.__call__
andValidator.format
.Validator.__call__
should convert the value it receives as argument and then return it or raise aValueError
, if the value will not convert.Validator.format
should return a human readable version of the value it receives as argument the same waystr
does.