Source: factory.core/ObjNotify.py
| Method | Signature | Description |
|---|---|---|
| Modify | Modify() -> None |
Placeholder for future modifications to the notification object. |
| Read | Read(notify_code: str = '') -> None |
|
| mark_read | mark_read(note_id: str = '', user_code: str = '') -> None |
|
| Update | Update(table: Any = None) -> Any |
Updates the notification object in the database. |
| deliver | deliver(mes_type: str = '') -> Dict[str, Any] |
Processes and delivers all pending notifications. |
| Run | Run(notify_code: str, message_text: str = '') -> None |
Triggers a notification event based on a notification code and message. |
| Select | Select(selection_id: str, message_text: str = '') -> None |
Allows for interactive selection of a notification to run. |
| read_slack | read_slack(channel_name: str = '', message_limit: int = DEFAULT_MESSAGE_LIMIT) -> None |
Reads recent messages from a Slack channel. |
| test_discord | test_discord(message_text: str) -> None |
Sends a direct discord message for testing. |
| test_slack | test_slack(message_text: str, channel_name: str = '') -> None |
Sends a direct slack message for testing. |
| test_mqtt | test_mqtt(message_text: str, topic: str = '') -> None |
Sends a direct MQTT message for testing. |
| test_sms | test_sms(msisdn: str, message_text: str) -> None |
Sends a direct SMS message for testing. |
| format_status_message | format_status_message(status_json: str) -> str |
Formats a JSON status response into a readable text message. |
Send a test MQTT message.
Send a test SMS message.
Test the full notification module.
Sends a test slack message with an image attachment.
Sends a test discord message with an image attachment.
Sends a test MQTT message with an image attachment.
Generates a system status dashboard and sends it to Slack.