CMDP Module#
SPDX-FileCopyrightText: 2024 DESY and the Constellation authors SPDX-License-Identifier: EUPL-1.2
Module implementing the Constellation Monitoring Distribution Protocol
- class core.cmdp.CMDPPublisher(name: str, socket: Socket)#
Bases:
CMDPTransmitterClass for sending and publishing monitoring information
- has_log_subscribers(levelname: str, topic: str | None = None)#
Return whether or not there are subscribers for the given log level and topic.
- has_log_subscribers_record(record: LogRecord) bool#
Return whether or not we have subscribers for the given log topic.
- has_metric_subscribers(metric_name: str) bool#
Return whether or not we have subscribers for the given metric data topic.
- register_log(topic: str, description: str | None = None) None#
Register a LOG topic that subscribers should be notified about.