Names and filtering
How an event type is named, when a name comes into existence, the four axes a subscription filters on, and what a consumer does with a type it has never seen.
The grammar
<subject-kind>.<object>.<verb> — lowercase, dot-separated, the verb in the past tense. A name has
two segments where there is no object to distinguish: instance.ready, channel.attached.
| Segment | Is | Example |
|---|---|---|
| subject kind | one of the six kinds, agreeing with the event's subject | unit |
| object | what within the subject, where it has parts worth naming | stream |
| verb | past tense | activated |
- A name's meaning never changes under the same name. A material change of meaning takes a new name.
- A name exists once something produces it, and not before. There is no register of reserved names; the catalogue is the set as it stands.
- A new type declares its class — level or edge — and what its
detailcarries.
The four axes
| Axis | Selects by | Form |
|---|---|---|
| subject | what the event is about | a kind, or a kind and an identity |
| severity | how serious it claims to be | a floor: at or above a value |
| type | what happened | exactly, or by prefix |
| occurrence | which domain occurrence a unit reported | exactly, or by prefix; only events that carry one |
- Axes combine by conjunction. An event is carried when it satisfies every axis the filter states; an axis the filter omits selects everything.
- A filter naming an occurrence selects nothing else, since no other type carries the field.
- A prefix reads whole segments, never characters.
unit.streamselectsunit.stream.activatedandunit.stream.stopped, and not a type beginningunit.streaming. - The subject axis reads the event's
subject; the type axis reads its name. They usually agree, and are still two questions. - A domain occurrence arrives under one type,
unit.occurrence.reported, with its class in theoccurrencefield: every calibration drift, from any unit is a filter on that axis alone.
A type a consumer has never seen
A consumer must be able to handle a type it does not know. The envelope gives it enough:
| From | A consumer can |
|---|---|
subject | place it — something happened to acquire-3 |
severity | rank it against everything else it shows |
time | order it, and say when |
type | display its name, and filter on it later |
detail | skip it: no consumer is required to decode a detail it does not know |
A consumer that fails on an unknown type is defective; a library that surfaces one as an error rather than as an event is defective in the same way.