rngo

Tutorial

Metadata

Each simulation outputs a metadata.json file at the root of the simulation directory. This contains a JSON object with metadata about the simulation, as you might've guessed.

The scenario key has the fully-resolved spec used by the simulation:

{
  "scenario": {
    "seed": 2,
    "start": "2024-07-01T03:04:38.567610Z",
    "end": "2024-07-10T03:04:38.567610Z",
  }
}

The streams key has a sub-object for each stream in the simuation. Each object will include cumulative stats about the stream's simulated data - e.g. eventCount - along with samples of notable events - e.g. the first one.

{
  "streams": {
    "posts": {
      "eventCount": 30,
      "samples": {
        "first": {
          "id": 1,
          "author_id": 1,
          "title": "7},c6_n(epxdS`2V&)k`8 a`\"2 ",
          "body": "7},c6_n(epxdS`2V&)k`8 a`\"2 ",
          "created_at": "1970-07-23T13:18:08+00:00",
          "published_at": "1970-07-23T13:18:08+00:00"
        }
      }
    },
  }
}
Previous
Non-Trivial Schemas