rpymostat.engine.api.v1.sensors module¶
-
class
rpymostat.engine.api.v1.sensors.Sensors(apiserver, app, dbconn, parent_prefix)[source]¶ Bases:
rpymostat.engine.site_hierarchy.SiteHierarchyManages 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/sensorsendpoint.Parameters: - _self – another reference to
selfsent by Klein - request (instance of
twisted.web.server.Request) – the Request
- _self – another reference to
-
prefix_part= 'sensors'¶
-
update(*args, **kwargs)[source]¶ Handle updating data from a remote sensor.
This serves
PUT /v1/sensors/updateendpoint.@TODO Handle sensor data update.
Parameters: - _self – another reference to
selfsent by Klein - request (instance of
twisted.web.server.Request) – the Request
- _self – another reference to
-