Package Products :: Package Zuul :: Package routers :: Module eventclasses :: Class EventClassesRouter
[hide private]
[frames] | no frames]

Class EventClassesRouter

source code

ZenUtils.Ext.DirectRouter --+    
                            |    
                   TreeRouter --+
                                |
                               EventClassesRouter

Event Classes and their instance maps

Instance Methods [hide private]
 
_getFacade(self)
Abstract method for child classes to use to get their facade
source code
 
addNewInstance(self, params=None)
Add new event class mapping for the current context
source code
 
removeInstance(self, instances)
remove instance(s) from an event class
source code
 
editInstance(self, params=None)
Edit an event class instance
source code
 
getInstances(self, uid, params=None)
Returns event class mappings for the current context
source code
 
getInstanceData(self, uid)
return all extra data for instance id
source code
 
getSequence(self, uid)
returns the sequence order of keys for a given instance
source code
 
resequence(self, uids)
resequences a list of sequenced instances
source code
 
setTransform(self, uid, transform)
sets the transform for the context
source code
 
getTransform(self, uid)
returns a transform for the context
source code
 
getTransformTree(self, uid)
returns a transform for the context with all its inherited transforms
source code
 
isTransformEnabled(self, uid)
Returns True if transform is enabled, False if disabled.
source code
 
setTransformEnabled(self, uid, enabled)
Enables or disables transforms on the given event class.
source code
 
editEventClassDescription(self, uid, description)
edit the description of a given event class
source code
 
deleteEventClass(self, uid, params=None)
remove an event class
source code
 
testCompileTransform(self, transform)
Test our transform by compiling it.
source code
 
testRegex(self, regex, example)
Test our regex using the example event string.
source code
 
testRule(self, rule)
Test our rule by compiling it.
source code
 
moveInstance(self, params)
move a mapped instance to a different organizer @params['targetUid'] @params['UidsToMove']
source code
 
moveClassOrganizer(self, params)
move an event class organizer under a different organizer
source code
 
getEventsCounts(self, uid)
return all the event counts for this context
source code

Inherited from TreeRouter: addNode, asyncGetTree, deleteNode, gunzip_b64, gzip_b64, moveOrganizer, objectExists

Inherited from TreeRouter (private): _canDeleteUid

Method Details [hide private]

_getFacade(self)

source code 

Abstract method for child classes to use to get their facade

Overrides: TreeRouter._getFacade
(inherited documentation)

addNewInstance(self, params=None)

source code 

Add new event class mapping for the current context

Decorators:
  • @serviceConnectionError

removeInstance(self, instances)

source code 

remove instance(s) from an event class

Decorators:
  • @require('Manage DMD')

editInstance(self, params=None)

source code 

Edit an event class instance

Decorators:
  • @serviceConnectionError
  • @require('Manage DMD')

getInstances(self, uid, params=None)

source code 

Returns event class mappings for the current context

Decorators:
  • @serviceConnectionError

getInstanceData(self, uid)

source code 

return all extra data for instance id

Decorators:
  • @serviceConnectionError

resequence(self, uids)

source code 

resequences a list of sequenced instances

Decorators:
  • @require('Manage DMD')

setTransformEnabled(self, uid, enabled)

source code 

Enables or disables transforms on the given event class. When disabled transforms are enabled again, bad_transform events are cleared.

Decorators:
  • @require('Manage DMD')

editEventClassDescription(self, uid, description)

source code 

edit the description of a given event class

Decorators:
  • @require('Manage DMD')

deleteEventClass(self, uid, params=None)

source code 

remove an event class

Decorators:
  • @require('Manage DMD')

moveInstance(self, params)

source code 

move a mapped instance to a different organizer @params['targetUid'] @params['UidsToMove']

Decorators:
  • @require('Manage DMD')

moveClassOrganizer(self, params)

source code 

move an event class organizer under a different organizer

Decorators:
  • @require('Manage DMD')