Package Products :: Package ZenRRD :: Module CommandParser :: Class CommandParser
[hide private]
[frames] | no frames]

Class CommandParser

source code

object --+
         |
        CommandParser
Known Subclasses:

Instance Methods [hide private]
 
dataForParser(self, context, datapoint) source code
 
preprocessResults(self, cmd, log)
Preprocess the results of running a command.
source code
 
processResults(self, cmd, results)
Process the results of a running a command.
source code
 
createDefaultEventUsingExitCode(self)
Property which can control whether events will be created based on the exit code of the command if no events are generated in the processResults function.
source code
Method Details [hide private]

preprocessResults(self, cmd, log)

source code 

Preprocess the results of running a command.

Parameters:
  • cmd (Products.ZenRRD.zencommand.Cmd) - the results of running a command, with the configuration from ZenHub
Returns:
None.

processResults(self, cmd, results)

source code 

Process the results of a running a command.

Parameters:
  • cmd (Products.ZenRRD.zencommand.Cmd) - the results of running a command, with the configuration from ZenHub
  • results - the values and events from the command output
Returns:
None.

createDefaultEventUsingExitCode(self)

source code 

Property which can control whether events will be created based on the exit code of the command if no events are generated in the processResults function.

Decorators:
  • @property