Skip to main content
Version: 0.15.0

Names and filtering

An event type's name says what happened to what, and a subscriber selects events by it and by three other axes. Names follow one grammar, and a name's meaning never changes once something produces it. A filter combines the subject, a severity floor, the type and the domain occurrence; an axis it leaves out selects everything. This page gives the grammar, when a name comes into existence, the four axes, and what a consumer must do 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.

SegmentIsExample
subject kindone of the six kinds, agreeing with the event's subjectunit
objectwhat within the subject, where it has parts worth namingstream
verbpast tenseactivated
  • 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 detail carries.

The four axes​

AxisSelects byForm
subjectwhat the event is abouta kind, or a kind and an identity
severityhow serious it claims to bea floor: at or above a value
typewhat happenedexactly, or by prefix
occurrencewhich domain occurrence a unit reportedexactly, 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.stream selects unit.stream.activated and unit.stream.stopped, and not a type beginning unit.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 the occurrence field: 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:

FromA consumer can
subjectplace it — something happened to acquire-3
severityrank it against everything else it shows
timeorder it, and say when
typedisplay its name, and filter on it later
detailskip 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.