Event names
Event names depend on the type of event. Eventing supports the following event types:
- CloudEvents - they use a specification for describing event data in a common way.
- legacy events - they are converted to CloudEvents by Event Publisher Proxy.
Event name format
For a Subscription Custom Resource, the fully qualified event name takes the sample form of order.created.v1
or Account.Root.Created.v1
.
The event type is composed of the following components:
- Event: can have two or more segments separated by
.
; for example,order.created
orAccount.Root.Created
- Version:
v1
For publishers, the event type takes this sample form:
order.created
orAccount.Root.Created
for legacy events coming from thecommerce
applicationorder.created.v1
orAccount.Root.Created.v1
for CloudEvents
Event name cleanup
To conform to Cloud Event specifications, sometimes Eventing must modify the event name before dispatching an event.
Special characters
If the event name contains any prohibited characters as per NATS JetStream specifications, the underlying Eventing services use a clean name with allowed characters only; for example, system>prod*
becomes systemprod
.
This can lead to a naming collision. For example, both system>prod
and systemprod
become systemprod
. While this doesn't result in an error, it can cause Eventing to not work as expected. Take a look into this troubleshooting guide for more information.