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

# Class ZenDeleteHistory

source code

                 object --+
                          |
            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`, `getDataRoot`, `getDmdObj`, `login`, `logout`, `opendb`, `syncdb` Inherited from `CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `parseOptions`, `pretty_print_config_comment`, `setupLogging` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
Inherited from `CmdBase.CmdBase`: `doesLogging`

Properties | [hide private]
Inherited from `object`: `__class__`

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.