Message topics¶
Anitya Messaging Schema provides following fedora messaging topics.
Message Base¶
- class anitya_schema.base.AnityaMessage(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
A base class for Anitya messages.
- property agent¶
Return the agent’s username for this message.
- Returns:
The agent’s username
- property agent_avatar¶
Return a URL to the avatar of the user who caused the action.
- Returns:
The URL to the user’s avatar, or None if username is None.
- property agent_name¶
Return the agent’s username for this message.
- Returns:
The agent’s username
- property app_name¶
Return the name of the application that generated the message.
- Returns:
the name of the application (anitya)
Distro topics¶
The schema for distribution-related messages sent by Anitya.
- class anitya_schema.distro_messages.DistroCreated(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
AnityaMessage
Message sent by Anitya to the “anitya.distro.add” topic when a new distribution is added.
- property distro_name¶
The new distribution’s name.
- property distro_url¶
The new distribution url.
- property summary¶
Return a short summary of the message.
- class anitya_schema.distro_messages.DistroDeleted(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
AnityaMessage
Message sent by Anitya when a distribution is removed.
- property distro_name¶
The new distribution’s name.
- property distro_url¶
The new distribution url.
- property summary¶
Return a short summary of the message.
- class anitya_schema.distro_messages.DistroEdited(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
AnityaMessage
Message sent by Anitya when a distribution is edited.
- property distro_name_new¶
The distribution’s new name.
- property distro_name_old¶
The distribution’s old name.
- property distro_url_new¶
The distribution’s new url.
- property distro_url_old¶
The distribution’s old url.
- property summary¶
Return a short summary of the message.
Project topics¶
The schema for project-related messages sent by Anitya.
- class anitya_schema.project_messages.ProjectCreated(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
The message sent when a new project is created in Anitya.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectDeleted(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
The message sent when a project is deleted in Anitya.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectEdited(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
The message sent when a project is edited in Anitya.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectFlag(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
Sent when a new flag is created for a project.
- property flag_url¶
The anitya url for the flag.
- property mappings¶
Mappings of package name to distros for project.
- Returns:
List of mappings
- Return type:
(list)
- property reason¶
Reason for the flag creation.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectFlagSet(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
AnityaMessage
Sent when a flag is closed for a project.
- property flag¶
The id of the flag.
- property flag_url¶
The anitya url for the flag.
- property state¶
The new state of the flag.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectMapCreated(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectCreated
Sent when new distribution mapping is created in Anitya.
- property distro¶
Name of distro for new mapping.
- property package_name¶
Package name for the new mapping.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectMapDeleted(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
Sent when distribution mapping is deleted in Anitya.
- property distro¶
Name of distro for mapping.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectMapEdited(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
Sent when distribution mapping is edited in Anitya.
- property distro¶
Name of distro for mapping.
- property edited¶
List of edited fields.
- property package_name_new¶
New package name for the mapping.
- property package_name_prev¶
Previous package name for the mapping.
- property summary¶
Return a summary of the message.
- class anitya_schema.project_messages.ProjectMessage(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
AnityaMessage
Base class for every project message.
- property project_backend¶
Backend of the project.
- property project_ecosystem¶
Ecosystem of the project.
- property project_homepage¶
Homepage url for project.
- property project_id¶
Id of the project in Anitya.
- property project_name¶
The name of the project.
- property project_url¶
The project url in Anitya.
- property project_version¶
The latest version associated with the project.
- property project_versions¶
The versions associated with the project.
- class anitya_schema.project_messages.ProjectVersionDeleted(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
Sent when version is deleted in Anitya.
- property summary¶
Return a summary of the message.
- property version¶
The version that was deleted.
- class anitya_schema.project_messages.ProjectVersionDeletedV2(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
Sent when version is deleted in Anitya.
- property summary¶
Return a summary of the message.
- property versions¶
The versions that were deleted.
- class anitya_schema.project_messages.ProjectVersionUpdated(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
Sent when new version is discovered by Anitya.
This message will be deprecated in future.
- property distros¶
Distros mapped to project.
- property mappings¶
Mappings of package name to distros for project.
- Returns:
List of mappings
- Return type:
(list)
- property old_version¶
Old version of project.
- property stable_versions¶
All stable versions on the project.
- property summary¶
Return a summary of the message.
- property version¶
The version that was found.
- property versions¶
All versions on the project.
- class anitya_schema.project_messages.ProjectVersionUpdatedV2(body=None, headers=None, topic=None, properties=None, severity=None)[source]¶
Bases:
ProjectMessage
Sent when new versions are discovered by Anitya.
- property distros¶
Distros mapped to project.
- property mappings¶
Mappings of package name to distros for project.
- Returns:
List of mappings
- Return type:
(list)
- property old_version¶
Old version of project.
- property stable_versions¶
All stable versions on the project.
- property summary¶
Return a summary of the message.
- property upstream_versions¶
The versions that were found in upstream.
- property versions¶
All versions on the project.