Skip to content
Skip to Content

events

Key of the [outputs] table. Qualified name: outputs.events

Event types the journal keeps when persistence is "subset", as canonical names such as "c:official/Mortality.Death"; required then, refused otherwise.

Type
array of strings
Unit
none
Default
no defaultexample: ["c:official/Mortality.Death"]
Valid range
any listof strings
Set in
[outputs]optional table
Since
0.1engine 0.1.0

Description

events is optional and has no default: when it is absent, the engine does without it.

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101

[time]
start = 2018-01-01
end = 2019-01-01

[outputs]
persistence = "subset"
events = ["c:test/Tick.Tick"]  # this page

[plugins."test/ticker"]

Run it with the engine built from source: cohortix run scenario.toml --output output/example.

When the key is misspelled

Written eevnts, the key is refused before anything runs, as missing and as unknown, with the nearest accepted name:

cohortix run scenario.toml
error[E1006]: [outputs] has no `events`, which is required and must be an array of strings.
  --> scenario.toml:11:2
  = fix: Add `events` under [outputs], as an array of strings, for example `events = ["c:official/Mortality.Death"]`.
 
error[E1022]: Unknown key `eevnts` in [outputs]; did you mean `events`?
  --> scenario.toml:13:1
  = fix: Rename `eevnts` to `events`, or remove it; the accepted keys of [outputs] are "persistence", "events", "size_budget".

Errors that name this key

  • E1008: events must be …, but it is ….
  • E1022: Unknown key … in [outputs]; did you mean …?

See also

Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key outputs.events) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.outputs.events in schemas/messages/en.toml and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.