sensor_receiver.sensor_main
index
/var/lib/jenkins/workspace/resmon_monitor_doc/sensor_receiver/sensor_main.py

 
Modules
       
datetime
dateutil
json
common.database.mongoAccess.mongo3

 
Classes
       
builtins.object
MetaValidator
ValidationError

 
class MetaValidator(builtins.object)
    Class meta data validator
 
  Methods defined here:
__init__(self, metaRecord)
Initialize self.  See help(type(self)) for accurate signature.
getValidationErrors(self)
Method to get validation errors
hasMandatoryField(self, fieldName)
Method check if fieldName is a mandatory field
hasMandatoryFields(self)
Method check if has mandatory fields

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
MANDATORY_FIELDS = ['session_id', 'hostname', 'metrics', 'session_start_date']

 
class ValidationError(builtins.object)
    Class for validation error
 
  Methods defined here:
__init__(self, error)
Initialize self.  See help(type(self)) for accurate signature.
__str__(self)
Return str(self).

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
app(environ, start_response)
Main WSGI application
parse_request(environ, db)
Method decode request from sensor and insert data to proper collection
in database