Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: An initial AVRO schema example for TimeSeries

...


    "signal"  :  "vehicle.body.cabin.temperature"
"count" : "132" # Might be redundant information, optional.
    "values" : {
        { 
   "ts" : "2020-01-10T02:59:43.491751"
   "value" : "42 .5"
     },
        { 
   "ts" : "2020-01-10T02:59:43.491751"
   "value" : "43.0"
     },
... 130 more records
}
}

AVRO-schema example (not complete)
{
  "type": "record",
  "name": "TimeSeries",
  "fields" : [
    {"name": "signal", "type": "string"}, 
    {"name": "count", "type": "int" },
{"name": "values", "type": "array" "items" :
{ "name" : "ts", "type" : "string" # ISO formatted timestamp },
{ "name" : "value", "type" "union" { TODO: union of int/long/string/ # VSS types }
}
}


Snapshot:


"timeperiod" {
"start" : "2020-01-10T02:00:00Z",
"end" : "2020-01-11T01:59:59Z"
},
"values" : {
{
    "signal" : "vehicle.body.cabin.temperature",
     "value" : "22.0",
     "ts" : "2020-01-10T02:59:43.491751"
},
{
    "signal" : "vehicle.drivetrain.engine.rpm.average",
      "value" : "3200",
     "ts" : "2020-01-10T02:59:44.100403"
}
}

...