Inventory Visibility generates events that are by default enabled for containers. Each
event is published to its respective Kafka topic.
Note: Effective 10.0.2409.2 January 2025 release, a publisher is needed to publish the events that
you are interested in. The default behavior, which is publishing of all the supported events without
any additional configuration is deprecated and will be removed in a future release.
Procedure
- To enable events with publishers,
- Identify the events of interest and create the corresponding topics
according to the Table -
Events and Kafka topics.
- Call the POST publisher API to create a publisher for the event. The
{event
Id} parameter in the following snippet can be set to any value from the table that is
mentioned in step 1.
For example, productAvailability.v2 or supplyChange.v2.
POST https://{{hostname}}/inventory/{tenantId}/v1/configuration/events/{eventId}/publishers
{
"type": "DirectKafkaExternal"
}
- Disable default event publishing
Remember: Until the default publishing in container environments is removed, use the
following rule to disable it after all the necessary publishers are created. This rule ensures that
only the events with publishers are published. This rule, along with default publishing, will be
removed in a future release.
PATCH https://{{hostname}}/inventory/operations/v1/configuration/settings/{tenantId}
{
"containerization": {
"enableAllEvents": “false”
}
}