Supported & Compatible Data formats¶
Time Format¶
The JSON key representing time in the data must have one of the time formats as below. The key representing time and the time format must stay the same for all the messages.
| Time Format | Example |
|---|---|
| Seconds | 1643707264 |
| Milliseconds | 1643707264380 |
| Microseconds | 1643707264380000 |
| Nanoseconds | 1643707264380000000 |
| ISO 8601 | 2022-01-31T13:30:00.123456789-07:00 |
Data Format¶
MQTT¶
| Data Type | Requirements |
|---|---|
| JSON |
|
File Types¶
Recommendation
Parquet file format is the preferred choice for transferring data via files to TSI. Choosing any other option like CSV or JSON file format can cause file processing delays and is recommended for testing purposes only.
| File Type | Requirements | Examples |
|---|---|---|
| Parquet |
|
Wide format: Timestamp,Signal1,Signal2 1643781166702,2.3,5.67 Narrow format: time,signal,value 1643781166702,signal1,2.3 1643781166702,signal2,5.67 |
| CSV |
|
Wide format: time,signal1,signal2 1643781166702,2.3,5.67 Narrow format: time,signal,value 1643781166702,signal1,2.3 1643781166702,signal2,5.67 |
| JSON |
|
Wide format: [{"time": 1643781166702, "signal1": 2.3, "signal2": 5.67}, {...}] Narrow format: [{"time": 1643781166702, "signal": "signal1", "value": 2.3}, {"time": 1643781166702, "signal": "signal2", "value": 5.67}, {...}] |
| NDJSON |
|
Wide format: {"time": 1643781166702, "signal1": 2.3, "signal2": 5.67} {"time": 1643781166703, "signal1": 2.4, "signal2": 5.79} Narrow format: {"time": 1643781166702, "signal": "signal1", "value": 2.3} |
Other-file-formats
The TSI also accepts compressed file formats. Such files are to be uploaded to a connection via TSI UI only. The above formatted files can be compressed using any one of the acceptable formats: .zip, .tar.gz or .gz.