Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the data is not aggregated at a daily level, an event could also be shared at a week, month, year level as well by just defining a startDate and endDate. Not the startDate and endDate should cleanly fall in a week, month, year, last 7 days, last 15 days or last 30 days.

Code Block
languagejson
{
    "startDate": "2019-01-01",
    "endDate": "2019-02-01",
    "grade": 1,
    "school_id": 901,
    "count": 23
}

if you cannot guarantee this, it would be better to use an alternative API to push an event as below.

Code Block
{
    "week": "2019-W21", // or "month": "2019-M11" or "year": "2022"
    "grade": 1,
    "school_id": 901,
    "count": 23
}

Keywords and preferences

The following keywords in an event will be treated as special keywords and don’t need to be part of the schema - date, startDate, endDate, week, month, year and are preferred in the same order. They cannot be mappings to a dimension or dataset.

2. Transformer Specification

...