Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,25 @@ that contains both context and data).

### content-type
* Type: String per [RFC 2046](https://tools.ietf.org/html/rfc2046)
* Description: Describe the data encoding format
* Description: Describe the data encoding format
* Constraints:
* OPTIONAL
* If present, MUST adhere to the format specified in
[RFC 2046](https://tools.ietf.org/html/rfc2046)
* For Media Type examples see [IANA Media Types](http://www.iana.org/assignments/media-types/media-types.xhtml)

### sampled-rate
* Type: Positive Integer
* Description: The rate at which this event has already been sampled. Represents
the number of similar events that happened but were not sent plus this event.
* Constraints:
* OPTIONAL
* If present, MUST be a positive integer
* When absent, a default value of 1 MAY be assumed, indicating no sampling
* Examples:
* If a system sees 30 occurrences and emits a single event as a sample,
`sampled-rate` would be 30 (29 not sent and 1 sent).

### extensions
* Type: Map <String, Object>
* Description: This is for additional metadata and this does not have a
Expand All @@ -225,7 +237,7 @@ that contains both context and data).
### data
* Type: Arbitrary payload
* Description: The event payload. The payload depends on the event-type,
schema-url and event-type-version, the pyload is encoded into a media format
schema-url and event-type-version, the payload is encoded into a media format
which is specified by the content-type attribute (e.g. application/json).
* Constraints:
* OPTIONAL
Expand Down