This page contains instructions on how to set up and configure a sensor object type.
If you expect time series data to appear on only a subset of objects of a given object type, you should proceed with creating sensor objects linked back to those root object types. However, if you expect time series data to appear for (nearly) all objects of a given object type, you should add a TSP directly on that object type. Learn more about these setup options in the time series documentation.
To begin, follow the instructions for creating a new time series object type. Your time series object type backing dataset should have the following schema:
Column | Type | Description |
---|---|---|
Primary key | String | [Required] A primary key for each row. |
Series ID | String | [Required] A series ID for the sole TSP. Note that if your sensor object type is backed by multiple time series syncs, you will need a qualified series ID. TSPs cannot be a primary key or title property. |
Sensor name | String | [Required] A name identifying what the time series data for a given sensor object represents. The sensor names of all sensor objects linked to a single root object must be unique. |
Foreign key | String | [Required] A foreign key used to link the sensor object type to a root object type. The primary key may serve this purpose, but at least one link type is required for a sensor object type. |
Is categorical | Boolean | [Required if the TSP is backed by multiple syncs of both numerical and categorical types] A Boolean value of true indicates a given sensor object has categorical time series data, otherwise the data are assumed to be numerical. If you are migrating from the Measures setup, this was previously referred to as is_enum . |
Units | String | [Optional] The unit which should be displayed for a given sensor object. |
Internal interpolation | String | [Optional] The internal interpolation which should be used for a given sensor object. |
In the Capabilities page of the Ontology Manager, select Get started within the Time series section.
In the first step of the Time series setup dialog, toggle on Sensor object type.
Then follow the remaining steps in the dialog to finish setting up your TSP.
Upon adding the property, you will see an expanded Sensor object type configuration section beneath the Time series properties table with the following configuration options:
LINEAR
: Linearly interpolate between the two points. Only applicable to numerical time series.NEAREST
: Take the value of the nearest point.PREVIOUS
: Take the value of the previous point.NEXT
: Take the value of the next point.NONE
: Never interpolate.The units and interpolation for sensor object types should be set in the sensor object type configuration section rather than through the base formatter.
If you see the warning shown below in the Capabilities page of an object type in Ontology Manager, this object type was previously configured as a Measure. Measures are being deprecated. You can use sensor object types in similar workflows instead.
Your object type may already be fully or partially migrated to a sensor object type. If you see a Get started button in the Time Series section of the Capabilities page in Ontology Manager, your Measure has not been migrated. To migrate your Measure to a sensor object type, follow the steps below. If you see a green check mark followed by All complete in the Sensor object type portion of this section, your object type is fully migrated. An example is included at the bottom of this page. If your setup doesn't match either of these descriptions, you are partially migrated. Follow the onscreen prompts to complete your migration.
We do not recommend migrating unless you are confident that you know which time series syncs back your Measure. If you are unsure of which time series syncs back your Measure but still want to migrate, reach out to Palantir Support.
Don't forget to save your changes to the Ontology. At the end of your setup, you should see a green check mark followed by All complete in the Sensor object type portion of the Time Series section in the Capabilities page in Ontology Manager. An example is shown below: