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.

add_child(self: _dripline.core.Service, arg0: _dripline.core._Endpoint) → bool[source]
process_payload(a_payload, a_routing_key_data, a_message_timestamp)[source]