Skip to main content
Version: 1.16

Publish a notification event

This section describes how to publish a notification event to rs-admin with AMQP message.

Exchange

The notification have to be published to REGARDS Rabbitmq exchange:

Exchange (type fanout)Virtual host
regards.broadcast.fr.cnes.regards.framework.amqp.event.notification.NotificationEventregards.multitenant.manager

AMQP message format

Headers

{
"regards.tenant": "tenant"
}
ParameterTypeOptionalDescription
regards.tenantStringNoTenant name depends on REGARDS instance project configuration.

Body

{
"message": "...",
"projectUserRecipients": [],
"roleRecipients": [],
"sender": "...",
"title": "...",
"level": "...",
"mimeType": "..."
}
ParameterTypeOptionalDescription
messageStringNoNotification message
projectUserRecipientsList of StringNoList of recipients(=project users)
roleRecipientsList of StringNoList of recipients(=role)
senderStringNoNotification sender (project user email or microservice name)
titleStringNoNotification title
levelStringNoNotification level (INFO, WARNING, ERROR, FATAL)
mimeTypeStringYesNotification mime type (by default TEXT_PLAIN)