Package ZenUtils :: Module ZenDeleteHistory :: Class ZenDeleteHistory
[hide private]
[frames] | no frames]

Class ZenDeleteHistory

source code

        CmdBase.CmdBase --+    
                          |    
ZenScriptBase.ZenScriptBase --+
                              |
                             ZenDeleteHistory

Delete events from the history table

Instance Methods [hide private]
 
buildOptions(self)
Setup the command line options
source code
 
deleteHistory(self)
Delete historical events.
source code

Inherited from ZenScriptBase.ZenScriptBase: __init__, closeAll, closedb, connect, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb

Inherited from CmdBase.CmdBase: buildParser, generate_configs, generate_xml_configs, generate_xml_table, getConfigFileDefaults, parseOptions, pretty_print_config_comment, setupLogging

Class Variables [hide private]

Inherited from CmdBase.CmdBase: doesLogging

Method Details [hide private]

buildOptions(self)

source code 
Setup the command line options
Overrides: ZenScriptBase.ZenScriptBase.buildOptions

deleteHistory(self)

source code 
Delete historical events. If device is given then only delete events for that device. If numDays is given then only delete events that are older than that many days. device and numDays are mutually exclusive. No real reason for this other than there is no current need to use both in same call and I don't want to test the combination.