fmn.messages.base module

class fmn.messages.base.BaseMessage(body=None, headers=None, topic=None, properties=None, severity=None)[source]

Bases: Message

property app_icon

An URL to the icon of the application that generated the message.

Note

Sub-classes should override this method if their application has an icon and they wish that image to appear in applications that consume messages.

Returns:

The URL to the app’s icon.

Return type:

str or None

property app_name

The name of the application that generated the message.

Note

Sub-classes should override this method.

Returns:

The name of the application.

Return type:

str or None