Example: event.asInterval("bucket-a"). Converts the event key to a labeled Interval covering the same extent.
Example: event.begin(). Returns the inclusive event start in milliseconds since epoch.
Example: event.collapse(["in", "out"], "avg", fn). Collapses selected payload fields into a single derived field using the supplied reducer.
Example: event.contains(time). Returns true when the event extent fully contains the supplied temporal value.
Example: event.data(). Returns the immutable event payload.
Example: event.end(). Returns the inclusive event end in milliseconds since epoch.
Example: event.intersection(range). Returns the temporal intersection of the event extent and the supplied value, if any.
Example: event.isAfter(range). Returns true when the event begins strictly after the supplied temporal value ends.
Example: event.isBefore(range). Returns true when the event ends strictly before the supplied temporal value begins.
Example: event.key(). Returns the event key.
Example: event.overlaps(range). Returns true when the event extent overlaps the supplied temporal value.
Example: event.rename({ cpu: "usage" }). Returns a new event with payload fields renamed according to the supplied mapping.
Example: event.timeRange(). Returns the event extent as a TimeRange.
Example: event.trim(range). Returns a new event clipped to the supplied temporal value, if the event overlaps it.
Example: event.type(). Returns the underlying key kind.
An immutable event made of a temporal key and typed payload data.
Example