Question

Does CDF support timeseries ingestion with non numeric values

  • 17 November 2023
  • 2 replies
  • 28 views

Badge

Does CDF support the direct ingestion of timeseries with non-numeric values ( enums).  If the workaround is to convert enums to integers to ingest, this is unnecessary overhead and a limitation. Also have to remember to convert the values back for visualization. 


2 replies

Userlevel 2
Badge +3

Hi,

CDF supports direct ingestion of non-numerical timeseries data. You can provide datapoints in either numerical and string form. 
https://developer.cognite.com/dev/concepts/resource_types/timeseries/

So yes, you don't need to convert enums or strings to numbers - you can ingest them as strings. 
 

However, we have many helper functions if you want to map the enum values to numbers. This is often used if you want to normalize or standardize enum values across multiple machine types and equipment suppliers. 

https://developer.cognite.com/dev/concepts/resource_types/synthetic_timeseries/#convert-string-time-series-to-doubles
 

Hope this helps  

 

kind regards

Johannes

Userlevel 1

Hi,

We currently do not natively support enums in Time Series (for example for representation of machine states), however this is in our roadmap for 2024 (though possibly second half of the year due to other priority items in the queue)

Kind Regards, Glen
 

Reply