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.CMDPTransmitter(name: str, socket: Socket | None)#
Bases:
object
Class for sending Constellation monitoring messages via ZMQ.
- recv(flags: int = 0) LogRecord | Metric | None #
Receive a Constellation monitoring message and return log or metric.
- class core.cmdp.Metric(name: str, unit: str, handling: MetricsType, value: Any = None)#
Bases:
object
Class to hold information for a Constellation metric.
- class core.cmdp.MetricsType(*values)#
Bases:
Enum
- ACCUMULATE = 2#
- AVERAGE = 3#
- LAST_VALUE = 1#
- RATE = 4#