rpymostat.engine.api.v1.sensors module

class rpymostat.engine.api.v1.sensors.Sensors(apiserver, app, dbconn, parent_prefix)[source]

Bases: rpymostat.engine.site_hierarchy.SiteHierarchy

Manages the v1/sensors portion of the API.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 29
_abc_registry = <_weakrefset.WeakSet object>
list(_self, request)[source]

Handle sensor list API endpoint - return a list of known sensors.

This serves the GET /v1/sensors endpoint.

Parameters:
prefix_part = 'sensors'
setup_routes()[source]

Setup routes for subparts of the hierarchy.

update(*args, **kwargs)[source]

Handle updating data from a remote sensor.

This serves PUT /v1/sensors/update endpoint.

@TODO Handle sensor data update.

Parameters: