Skip to content

Commit

Permalink
Issue cloudevents#331: Explanatory text/examples for scope of URI uni…
Browse files Browse the repository at this point in the history
…queness.

Signed-off-by: Alan Conway <aconway@redhat.com>
  • Loading branch information
alanconway committed Feb 26, 2019
1 parent d2004e4 commit f836f27
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,20 +205,34 @@ help intermediate gateways determine how to route the events.
* Description: This identifies the event producer. Often this will include
information such as the type of the event source, the organization
publishing the event, the process that produced the event, and some unique
identifiers. The exact syntax and semantics behind the data encoded in the URI
is event producer defined.
identifiers.

The exact syntax of `source`, and the scope in which it is unique,
depends on the application. Applications range from a single service
with a few direct consumers to large distributed services with
complex event routing networks. The URI-reference is flexible
enough for all these cases, see the examples below.

* Constraints:
* REQUIRED

* Examples
* Internet-unique URI with a DNS authority.
* https://github.com/cloudevents/spec/pull/123
* mailto:cncf-wg-serverless@lists.cncf.io
* Universally-unique via a UUID:
* urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66
* Unique relative to some assumed base (e.g. a specific service)
* /cloudevents/spec/pull/123
* /sensors/tn-1234567/alerts
* Unique via URN namespaces:
* urn:event:from:myapi/resourse/123
* mailto:cncf-wg-serverless@lists.cncf.io

### id
* Type: `String`
* Description: ID of the event. The semantics of this string are explicitly
undefined to ease the implementation of producers. Enables deduplication.
source+id is unique within the same scope that `source` is unique.
* Examples:
* A database commit ID
* Constraints:
Expand Down

0 comments on commit f836f27

Please sign in to comment.