Skip to main content

Message bus events

This document provides detailed documentation for all events used in the Infrahub message bus system.

info

For more detailed explanations on how these events are used within Infrahub, see the bus event handling topic.

Messages events​

Check Generator​

Event check.generator.run​

Description: A check that runs a generator.

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
generator_definitionThe Generator definitionN/ANone
generator_instanceThe id of the generator instance if it previously existedN/ANone
commitThe commit to targetstringNone
repository_idThe unique ID of the RepositorystringNone
repository_nameThe name of the RepositorystringNone
repository_kindThe kind of the RepositorystringNone
branch_nameThe branch where the check is runstringNone
target_idThe ID of the target object for this generatorstringNone
target_nameName of the generator targetstringNone
queryThe name of the query to use when collecting datastringNone
variablesInput variables when running the generatorobjectNone
validator_idThe ID of the validatorstringNone
proposed_changeThe unique ID of the Proposed ChangeN/ANone
contextThe Infrahub contextN/ANone

Finalize Validator​

Event finalize.validator.execution​

Description: Update the status of a validator after all checks have been completed.

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
validator_idThe id of the validator associated with this checkstringNone
validator_execution_idThe id of current execution of the associated validatorstringNone
start_timeStart time when the message was first createdstringNone
validator_typeThe type of validator to completestringNone
contextThe Infrahub contextN/ANone
proposed_changeThe ID of the proposed changestringNone

Git File​

Event git.file.get​

Description: Read a file from a Git repository.

Priority: 4

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
commitThe commit id to use to access the filestringNone
fileThe path and filename within the repositorystringNone
repository_idThe unique ID of the RepositorystringNone
repository_nameThe name of the repositorystringNone
repository_kindThe kind of the repositorystringNone

Git Repository​

Event git.repository.connectivity​

Description: Validate connectivity and credentials to remote repository

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
repository_nameThe name of the repositorystringNone
repository_locationThe location of repositorystringNone

Refresh Git​

Event refresh.git.fetch​

Description: Fetch a repository remote changes.

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
locationThe external URL of the repositorystringNone
repository_idThe unique ID of the repositorystringNone
repository_nameThe name of the repositorystringNone
repository_kindThe type of repositorystringNone
infrahub_branch_nameInfrahub branch on which to sync the remote repositorystringNone
infrahub_branch_idId of the Infrahub branch on which to sync the remote repositorystringNone

Refresh Registry​

Event refresh.registry.branches​

Description: Sent to indicate that the registry should be refreshed and new branch data loaded.

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone

Event refresh.registry.rebased_branch​

Description: Sent to refresh a rebased branch within the local registry.

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
branchThe branch that was rebasedstringNone

Request Generator Definition​

Event request.generator_definition.check​

Description: Sent to trigger Generators to run for a proposed change.

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
generator_definitionThe Generator DefinitionN/ANone
branch_diffThe calculated diff between the two branchesN/ANone
proposed_changeThe unique ID of the Proposed ChangestringNone
source_branchThe source branchstringNone
source_branch_sync_with_gitIndicates if the source branch should sync with gitbooleanNone
destination_branchThe target branchstringNone
contextThe Infrahub contextN/ANone

Request Proposed Change​

Event request.proposed_change.pipeline​

Description: Sent request the start of a pipeline connected to a proposed change.

Priority: 5

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
proposed_changeThe unique ID of the proposed changestringNone
source_branchThe source branch of the proposed changestringNone
source_branch_sync_with_gitIndicates if the source branch should sync with gitbooleanNone
destination_branchThe destination branch of the proposed changestringNone
check_typeCan be used to restrict the pipeline to a specific type of jobN/Aall
contextThe context of the taskN/ANone
pipeline_idThe unique ID of the execution of this pipelinestringNone

Event request.proposed_change.refresh_artifacts​

Description: Sent trigger the refresh of artifacts that are impacted by the proposed change.

Priority: 3

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
proposed_changeThe unique ID of the Proposed ChangestringNone
source_branchThe source branch of the proposed changestringNone
source_branch_sync_with_gitIndicates if the source branch should sync with gitbooleanNone
destination_branchThe destination branch of the proposed changestringNone
branch_diffThe calculated diff between the two branchesN/ANone
contextThe context of the taskN/ANone

Send Echo​

Event send.echo.request​

Description: Sent a echo request, a ping message for example.

Priority: 5

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
messageThe message to sendstringNone

Responses events​

Git File​

Event git.file.get​

Priority: 4

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
passedN/AbooleanTrue
routing_keyN/Astringgit.file.get
data.contentN/AN/ANone
data.error_messageN/AN/ANone
data.http_codeN/AN/ANone
errorsN/AarrayNone
initial_messageInitial message in dict format, the primary goal of this field is to provide additional context when there is an errorN/ANone

Send Echo​

Event send.echo.request​

Priority: 5

KeyDescriptionTypeDefault Value
metaMeta properties for the messageN/ANone
passedN/AbooleanTrue
routing_keyN/Astringsend.echo.request
data.responseThe response stringstringNone
errorsN/AarrayNone
initial_messageInitial message in dict format, the primary goal of this field is to provide additional context when there is an errorN/ANone