NOTE: these properties can be used on their own or in conjunction with others e.g. Checks.

Input

Provides a common way to define input. Supports a filesystem path or command. When a command is provided, its output is written to a temporary file and input.path is set to the path of that file.

This property is required by and used as input to the Search property.

Usage:

input:
  command: hotsos.core.host_helpers.CLIHelper.<command>
  path: <path>
  options:
    disable-all-logs: <bool>
    args: [arg1]
    kwargs:
      key1: val1
    args-callback: import.path.to.method

The path and command settings are mutually exclusive. A path can be a single or list of filesystem paths that must be relative to Data Root.

By default if –all-logs is provided to the hotsos client that will apply to path but there may be cases where this is not desired and disable-all-logs can be used to disable this behaviour for a specific path.

When input is the output of a command, the execution of that command may itself require some input. Both args and kwargs can be set as a list and/or dictionary respectively and will be providing as input to the CLIHelper command.

Sometimes we may way to dynamically generate the input args to command. For this purpose we can use args-callback which is set to the import path of a method whose return value must be a tuple of the form (<list>, <dict>) where the list is used as args to the command and dict is kwargs.

Cache keys: * cmd_tmp_path