enum sheet of the NEAT physical data model, then reference them in the Value Type column of the Properties sheet.
Defining an enumeration
Add one row per value in theenum sheet. The following table shows CogniteTimeseries.type and CogniteAnnotation.status enumerations from the CogniteCore model.
| Collection | Value | Name | Description |
|---|---|---|---|
| CogniteTimeseries.type | numeric | numeric | Time series with double floating point data points. |
| CogniteTimeseries.type | string | string | Time series with string data points. |
| CogniteAnnotation.status | Approved | Approved | |
| CogniteAnnotation.status | Rejected | Rejected | |
| CogniteAnnotation.status | Suggested | Suggested |
Collection column is the unique identifier for the enumeration. The Value column lists the allowed values. The Name and Description columns are optional and provide the display name and description for each value.
Referencing an enumeration
Reference an enumeration in theValue Type column of the Properties sheet using the syntax enum(collection=). Add an optional unknownValue parameter for unknown values.
| View | View property | Value type | Container | Container property |
|---|---|---|---|---|
| CogniteTimeseries | type | enum(collection=CogniteTimeseries.type) | CogniteTimeseries | type |
| CogniteAnnotation | status | enum(collection=CogniteAnnotation.status) | CogniteAnnotation | status |
Further reading
- Physical data model reference — Overview of all physical data model sheets
- Properties sheet — Property definitions and syntax