rpymostat.db.sensors module

rpymostat.db.sensors.update_sensor(*args, **kwargs)[source]

Update data for a single sensor in the database.

Parameters:
  • dbconn (txmongo.connection.ConnectionPool) – MongoDB database connection
  • host_id (str) – host_id that the sensor is reporting from
  • sensor_id (str) – unique sensor ID
  • value (float) – sensor reading in degress Celsius
  • sensor_type (str) – description of the type of sensor
  • sensor_alias (str) – human-readable alias for the sensor
  • extra (str) – extra information about the sensor
Returns:

database record ID

Return type:

str