| Trees | Indices | Help |
|
|---|
|
|
Mix-in class that takes a MySQL db connection and builds inserts that sends the event to the backend.
|
|||
| string |
|
||
| string |
|
||
| device object |
|
||
| DMD object, evt |
|
||
| Event class |
|
||
| Event class |
|
||
|
|||
|
|||
| string |
|
||
| string |
|
||
| string |
|
||
| tuple of dictionaries |
|
||
| string |
|
||
|
|||
Send an event to the backend.
|
Actually write the sanitized event into the database
|
Find and ip by looking up it up in the Networks catalog.
|
Return the network root and event
|
Apply event and devices contexts to the event. Only valid if this object has zeo connection.
|
Apply event attributes from device context.
|
Add a heartbeat record to the heartbeat table.
|
Build an insert statement for the status table that looks like this:
insert into status set device='box', count=1, ...
on duplicate key update count=count+1, lastTime=23424.34;
@param statusdata: event
@type statusdata: dictionary
@param table: name of the table to insert into
@type table: string
@param evid: event id
@type evid: string
@return: MySQL insert command string
@rtype: string
|
Build an insert to add detail values from an event to the details table.
|
Build a insert statement for that looks like this: insert into status set field='value', field=1, ...
|
Build an update statement that will clear related events.
|
Return tuple (statusdata, detaildata) for this event.
|
Prepare string values for db by escaping special characters.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 14 12:01:24 2010 | http://epydoc.sourceforge.net |