Package ZenEvents :: Module EventCommand :: Class EventCommand
[hide private]
[frames] | no frames]

Class EventCommand

source code

  Products.ZenModel.ZenModelRM.ZenModelRM --+
                                            |
Products.ZenModel.Commandable.Commandable --+
                                            |
                               object --+   |
                                        |   |
                  EventFilter.EventFilter --+
                                            |
Products.ZenModel.ZenPackable.ZenPackable --+
                                            |
                                           EventCommand

Instance Methods [hide private]
 
getEventFields(self) source code
 
getUserid(self) source code
 
breadCrumbs(self, terminator='dmd')
Return the breadcrumb links for this object add ActionRules list.
source code
 
manage_beforeDelete(self, item, unused)
Clear state in alert_state before we are deleted.
source code
 
sqlwhere(self)
Return sql where to select alert_state data for this event.
source code
 
_clearAlertState(self)
Clear state in alert_state before we are deleted.
source code
 
manage_editEventCommand(self, REQUEST=None)
edit the commands run when events match
source code

Inherited from EventFilter.EventFilter: genMeta, getQueryElements, getWhere, getWhereClauseAsJavaScript

Inherited from EventFilter.EventFilter (private): _whereClauseAsJavaScript

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  where = ''
  command = ''
  clearCommand = ''
  enabled = False
  delay = 0
  repeatTime = 0
  _properties = ZenModelRM._properties+({'id': 'command', 'type'...
  _relations = ZenPackable._relations+(("eventManager", ToOne(To...
  factory_type_information = {'immediate_view': 'editEventComman...
  security = ClassSecurityInfo()

Inherited from EventFilter.EventFilter: formName

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

breadCrumbs(self, terminator='dmd')

source code 
Return the breadcrumb links for this object add ActionRules list. [('url','id'), ...]

Class Variable Details [hide private]

_properties

Value:
ZenModelRM._properties+({'id': 'command', 'type': 'string', 'mode': 'w\
'}, {'id': 'clearCommand', 'type': 'string', 'mode': 'w'}, {'id': 'whe\
re', 'type': 'string', 'mode': 'w'}, {'id': 'defaultTimeout', 'type': \
'int', 'mode': 'w'}, {'id': 'enabled', 'type': 'boolean', 'mode': 'w'}\
, {'id': 'delay', 'type': 'int', 'mode': 'w'}, {'id': 'repeatTime', 't\
ype': 'int', 'mode': 'w'},)

_relations

Value:
ZenPackable._relations+(("eventManager", ToOne(ToManyCont, "Products.Z\
enEvents.EventManagerBase", "commands")),)

factory_type_information

Value:
{'immediate_view': 'editEventCommand', 'actions':({'id': 'edit', 'name\
': 'Edit', 'action': 'editEventCommand', 'permissions':("Manage DMD",)\
},)},