Package ioids :: Module dbconnector :: Class IoidsDBConnector
[hide private]
[frames] | no frames]

Class IoidsDBConnector

source code

soapsytools.dbconnector.DBConnector --+
                                      |
                                     IoidsDBConnector
Known Subclasses:
ioids_extension.IOIDS_DBConnector, snortdb_extension.SnortDB_DBConnector

Standard DB connector - work on XML RPC database.

Instance Methods [hide private]
 
__init__(self)
Sets the parameters for the later db connections.
source code
 
getExtensionForEvent(self, event)
Retrieves extension information from the database for an event.
source code
 
getIoidsClassification(self, classification_id, full=1) source code
 
getIoidsClassificationByCode(self, classification_code, full=1) source code
 
getIoidsEvent(self, ioids_event_id, full=1) source code
 
getIoidsEvents(self, conditions=[])
Collects available ioids events from the database.
source code
 
getIoidsEventsFromEventID(self, minIoidsEventId)
Returns all ioids events with ioids event id greater then the given one.
source code
 
getIoidsPeer(self, peerId, full=1) source code
 
getIoidsRelation(self, relationId, full=1) source code
 
getIoidsRelationType(self, relation_type_id, full=1) source code
 
getIoidsSender(self, senderId, full=1) source code
 
getIoidsSource(self, sourceId, full=1) source code
 
getRelatedEventsForIoidsEvent(self, ioidsEventId, full=1) source code
 
insertExtensionEvent(self, extensionName, data) source code
String
insertFullIoidsEventWithRelation(self, fullIoidsEvent)
Insert a new ioids event with its relation to further events.
source code
String
insertIoidsEvent(self, ioidsEventEntryList)
Insert a new IOIDS event.
source code

Inherited from soapsytools.dbconnector.DBConnector: connect, disconnect, getAgent, getAgentClass, getComputer, getComputerType, getData, getDestination, getEncoding, getEvent, getEventType, getEvents, getEventsFromEventID, getObserver, getProcess, getProcessName, getProcessType, getReporter, getSource, getUser, getUserGroup, insertEvent, testConnection

Inherited from soapsytools.dbconnector.DBConnector (private): _getSomething, _performRequest

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Sets the parameters for the later db connections.

Most of the settings are taken from the global config file.
Overrides: soapsytools.dbconnector.DBConnector.__init__

getExtensionForEvent(self, event)

source code 
Retrieves extension information from the database for an event.
Parameters:
  • event - Event in List / Dict format.
Returns:
Name of the Extension / Extension in List / Dict format (including event).

getIoidsEvents(self, conditions=[])

source code 

Collects available ioids events from the database.

The result is returned in a format mixed by lists and dictionaries.

insertFullIoidsEventWithRelation(self, fullIoidsEvent)

source code 
Insert a new ioids event with its relation to further events.
Returns: String
The primary key of the new relation entry

insertIoidsEvent(self, ioidsEventEntryList)

source code 
Insert a new IOIDS event.
Returns: String
The primary key of the new event