Exchanges to manage hooks


The hooks service is responsible for creating tasks at specific times orin . response to webhooks and API calls.Using this exchange allows us tomake hooks which repsond to particular pulse messagesThese exchanges provide notifications when a hook is created, updatedor deleted. This is so that the listener running in a different hooks process at the other end can direct another listener specified byhookGroupId and hookId to synchronize its bindings. But you are ofcourse welcome to use these for other purposes, monitoring changes for example.

Exchanges

NameExchangeSummary
hookCreatedexchange/taskcluster-hooks/v1/hook-createdHook Created Messages
hookUpdatedexchange/taskcluster-hooks/v1/hook-updatedHook Updated Messages
hookDeletedexchange/taskcluster-hooks/v1/hook-deletedHook Deleted Messages

hookCreated

Exchange
exchange/taskcluster-hooks/v1/hook-created
Signature
"hookCreated(routingKeyPattern)"

Whenever the api receives a request to create apulse based hook, a message is posted to this exchange andthe receiver creates a listener with the bindings, to create a task

Routing Key

IndexNameSummary
0
reserved

Space reserved for future routing-key entries, you should always match this entry with #. As automatically done by our tooling, if not specified.

option-key

multi-key

Message Payload

Hook Changed Message (source)

Message reporting that a hook has changed

hookGroupIdstring

hookGroupId of the hook that was changed

hookIdstring

hookId of the hook that was changed

Additional properties are permitted


hookUpdated

Exchange
exchange/taskcluster-hooks/v1/hook-updated
Signature
"hookUpdated(routingKeyPattern)"

Whenever the api receives a request to update apulse based hook, a message is posted to this exchange andthe receiver updates the listener associated with that hook.

Routing Key

IndexNameSummary
0
reserved

Space reserved for future routing-key entries, you should always match this entry with #. As automatically done by our tooling, if not specified.

option-key

multi-key

Message Payload

Hook Changed Message (source)

Message reporting that a hook has changed

hookGroupIdstring

hookGroupId of the hook that was changed

hookIdstring

hookId of the hook that was changed

Additional properties are permitted


hookDeleted

Exchange
exchange/taskcluster-hooks/v1/hook-deleted
Signature
"hookDeleted(routingKeyPattern)"

Whenever the api receives a request to delete apulse based hook, a message is posted to this exchange andthe receiver deletes the listener associated with that hook.

Routing Key

IndexNameSummary
0
reserved

Space reserved for future routing-key entries, you should always match this entry with #. As automatically done by our tooling, if not specified.

option-key

multi-key

Message Payload

Hook Changed Message (source)

Message reporting that a hook has changed

hookGroupIdstring

hookGroupId of the hook that was changed

hookIdstring

hookId of the hook that was changed

Additional properties are permitted