| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 11 | class NagiosMessage(Message): |
||
| 12 | """ |
||
| 13 | Message type for requesting performance data for Nagios. |
||
| 14 | """ |
||
| 15 | MESSAGE_TYPE = 'controller:NagiosMessage' |
||
| 16 | """ |
||
| 17 | The message type. |
||
| 18 | |||
| 19 | :type: str |
||
| 20 | """ |
||
| 21 | |||
| 22 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 23 | def __init__(self): |
||
| 24 | """ |
||
| 25 | Object constructor. |
||
| 26 | """ |
||
| 27 | Message.__init__(self, NagiosMessage.MESSAGE_TYPE) |
||
| 28 | |||
| 29 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 30 | def send_message(self, end_point): |
||
| 31 | """ |
||
| 32 | Sends the message to an end point. |
||
| 33 | |||
| 34 | :param str end_point: The end point. |
||
| 35 | |||
| 36 | :rtype: None |
||
| 37 | """ |
||
| 38 | self.message_controller.send_message(end_point, self) |
||
| 39 | |||
| 42 |