Getting Metadata from a Stream

Sample Response

SmartCar Stream Response

{
  "id": "2gkUhtxJkEa5g6e20DnYIiTX0TV",
  "source": "dimo/integration/22N2xaPOq2WW2gAHBHd0Ikn4Zob",
  "specversion": "1.0",
  "subject": "2UZb3drEbIkLdMFcvEFqhjrX4X6",
  "time": "2024-05-20T21:39:51.800991814Z",
  "type": "zone.dimo.device.status.update",
  "data": {
    "vehicleId": "<vehicle_id>",
    "timestamp": "2024-05-20T21:39:51.368245975Z",
    "make": "<MAKE>",
    "model": "<MODEL>",
    "year": <YEAR>,
    "odometer": <ODOMETER>,
    "vin": "<VIN>"
    "errors": [
      {
        "errorCode": 502,
        "type": "tires/pressure",
        "resolution": {
          "type": "RETRY_LATER"
        },
        "errorType": "UPSTREAM",
        "description": "Smartcar received an error from an upstream source. Please retry your request at a later time."
      },
      {
        "errorCode": 502,
        "type": "fuel",
        "resolution": {
          "type": "RETRY_LATER"
        },
        "errorType": "UPSTREAM",
        "description": "Smartcar received an error from an upstream source. Please retry your request at a later time."
      },
      {
        "errorCode": 502,
        "type": "location",
        "resolution": {
          "type": "RETRY_LATER"
        },
        "errorType": "UPSTREAM",
        "description": "Smartcar received an error from an upstream source. Please retry your request at a later time."
      }
    ]
  }
}

Macaron Stream Response

{
  "id": "2gk5b7i1bShxQCbWDvscUmm434f",
  "source": "dimo/integration/2ULfuC8U9dOqRshZBAi0lMM1Rrx",
  "specversion": "1.0",
  "subject": "2UZb3drEbIkLdMFcvEFqhjrX4X6",
  "time": "2024-05-20T18:13:23.89Z",
  "type": "zone.dimo.device.status.update",
  "data": {
    "batteryVoltage": 12.606,
    "bootCounter": 2,
    "deviceState": 3,
    "flashUsage": 0,
    "fwVersion": "0.9.0",
    "latitude": <lat>,
    "longitude": <lng>,
    "lora": {
      "app_eui": "44494D4F5A4F4E45",
      "devAddr": "61080048",
      "deveui": "F4CE36B7251BF81C",
      "fPort": "2",
      "fcnt": "2018",
      "payload_size": "26"
    },
    "nsat": 1,
    "timestamp": "2024-05-20T00:04:21.000Z"
  }
}

Last updated