Message topics¶
The New Hotness Messaging Schema provides following fedora messaging topics.
The schema for the-new-hotness messages.
- class hotness_schema.messages.UpdateBugFile(body: Mapping[str, Any] | None = None, headers: dict[str, str | int | bool] | None = None, topic: str | None = None, properties: BasicProperties | None = None, severity: int | None = None)[source]¶
Bases:
MessageMessage sent by the-new-hotness to “hotness.update.bug.file” topic when bugzilla issue is filled.
- Attributes:
topic (str): Message topic “org.fedoraproject.prod.hotness.update.bug.file” body_schema (dict): Message schema definition
- 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.
- property packages¶
List of packages affected by the action that generated this message.
- Returns:
list(str): A list of affected package names.
- property summary¶
Return a short summary of the message.
- Returns:
(str): Short description of the message.
- property url¶
An URL to the action that caused this message to be emitted.
Note
Sub-classes should override this method if there is a URL associated with message.
- Returns:
A relevant URL.
- class hotness_schema.messages.UpdateDrop(body: Mapping[str, Any] | None = None, headers: dict[str, str | int | bool] | None = None, topic: str | None = None, properties: BasicProperties | None = None, severity: int | None = None)[source]¶
Bases:
MessageMessage sent by the-new-hotness to “hotness.update.drop” topic when update is dropped.
- Attributes:
topic (str): Message topic “org.fedoraproject.prod.hotness.update.drop” body_schema (dict): Message schema definition
- property agent_name¶
The username of the user who caused the action.
Note
Sub-classes should override this method if the message was triggered by a particular user.
- Returns:
The agent’s username.
- 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.
- property packages¶
List of packages affected by the action that generated this message. In this case we only return list with one item.
- Returns:
list(str): A list of affected package names or empty list.
- property reason¶
Return a reason for this drop.
- Returns:
(str): Reason for drop.
- property summary¶
Return a short summary of the message.
- Returns:
(str): Short description of the message.
- property usernames¶
List of users affected by the action that generated this message.
Note
Sub-classes should override this method if the message pertains to a user or users. The data returned from this property is used to filter notifications.
- Returns:
A list of affected usernames.