Skip to the content.

Table of contents

Cozy Time Series doctype

io.cozy.timeseries.*

The io.cozy.timeseries.* doctype is used to represent time series. The type of the time series is specified in the last part of the doctype, e.g. io.cozy.timeseries.geojson.

Any type of time series must follow the same common structure:

io.cozy.timeseries.geojson

These time series follow the GeoJSON format. See here for a complete example of this doctype.

Example

{
  "startDate": "2021-02-17T17:37:17",
  "endDate": "2021-02-17T17:54:50",
  "source": "my-trips.com",
  "theme": "timeline",
  "series": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [48.85, 2.29]
      },
      "properties": {
        "name": "Eiffel Tower"
      }
    }
  ]
}

io.cozy.timeseries.grades

This time series is used to represent a collection of grades in a given subject over a school period.

It uses additional attributes :

Example


{
  "_id": "62e5d66d6e11d19992b7efce794263f0",
  "subject": "hisgeo",
  "title": "Semestre 2",
  "startDate": "2017-04-22T01:00:00-05:00",
  "endDate": "2017-07-01T01:00:00-05:00",
  "aggregation": {
    "avgGrades": ...,
    "avgClass": ...,
    "maxClass": ...,
    "minClass": ...,
  },
  "series": [
    {
      "id": "1d16d6e192b7efce762e5d64263f0999",
      "label": ...,
      "date": "2017-04-22T01:00:00-05:00",
      "value": {
        "student": 16.00,
        "outOf": 20.00,
        "coef": 1.00,
        "classAverage": 14.00,
        "classMax": 19.00,
        "classMin": 5.00,
      },
      "status": {
        "isBonus": false,
        "isOptional": false,
      }
    }
  ],
}