Listener Module
SPDX-FileCopyrightText: 2025 DESY and the Constellation authors
SPDX-License-Identifier: EUPL-1.2
Module implementing listeners
-
class core.listener.MonitoringListener(name: str, group: str, interface: list[str] | None, **kwds: Any)
Bases: CHIRPManager
-
receive_log(record: LogRecord) → None
Callback for receiving a log message
-
receive_metric(sender: str, metric: Metric, timestamp: datetime, value: Any) → None
Callback for receiving a metric
-
receive_notification(sender: str, topics_prefix: str, topics: dict[str, str]) → None
Callback for receiving a notification
-
reentry() → None
Orderly destroy the satellite.
-
set_topics(new_topics: list[str])
Set topics to subscribe to
-
class core.listener.StandaloneListener(name: str, group: str, interface: list[str] | None, **kwds: Any)
Bases: MonitoringListener
Class to run a listener outside of a satellite or controller
-
run_listener() → None