Package Products :: Package Zuul :: Package routers :: Module monitor :: Class MonitorRouter
[hide private]
[frames] | no frames]

Class MonitorRouter

source code

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

Instance Methods [hide private]
 
_getFacade(self)
Abstract method for child classes to use to get their facade
source code
[dictionary]
getTree(self, id)
Returns the tree structure of the application (service) hierarchy where the root node is the organizer identified by the id parameter.
source code
DirectResponse
getInfo(self, id)
Returns the serialized info object for the given id
source code
DirectResponse
addCollector(self, id, sourceId, hubId, poolId)
Adds a collector to the hub specified by hub id.
source code
 
getCollectors(self, query=None) source code
 
getCollector(self, collectorString)
Get a collector by name
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)

getTree(self, id)

source code 

Returns the tree structure of the application (service) hierarchy where the root node is the organizer identified by the id parameter.

Parameters:
  • id (string) - Id of the root node of the tree to be returned
Returns: [dictionary]
Object representing the tree

getInfo(self, id)

source code 

Returns the serialized info object for the given id

Parameters:
  • id - Valid id of a application
Returns: DirectResponse
DirectResponse with data of the application

addCollector(self, id, sourceId, hubId, poolId)

source code 

Adds a collector to the hub specified by hub id.

Parameters:
  • id - Valid id of a hub
Returns: DirectResponse
DirectResponse Upon success

getCollector(self, collectorString)

source code 

Get a collector by name

Parameters:
  • collectorString (string) - name of collector to return