dripline.implementations.postgres_sensor_logger module¶
A Postgres Interface-based logger
-
class
dripline.implementations.postgres_sensor_logger.
PostgresSensorLogger
(insertion_table_endpoint_name, **kwargs)[source]¶ Bases:
dripline.core.alert_consumer.AlertConsumer
,dripline.implementations.postgres_interface.PostgreSQLInterface
An alert consumer which converts alert messages into database insertions.
The assumption made is that complex logic dealing with organization or structure of the particular database should live in the database itself (possibly in a view, with a trigger, …) and that here we can simply do an insert.