Entity historic data
Entity historic records are time-stamped snapshots of an Entity's data. You can assign a set of your attributes to be tied to one of your date-time attributes, and the system will automatically create a new historic record each time the date-time attribute changes.
You can have multiple date-time attributes that create different historic records for different sets of attributes.
We call these date-times "Historic keys", and attributes that change "Historic attributes".
You can flag an attribute as tied to a historic key by setting the HistoricKey property on the attribute in the Entity Type's Data Schema.
See below a preview of the Data Schema definition that you can find more information about in the Entity Type Data Schema documentation.
Once set, updating Entities in that Entity Type will check for valid date-time values in that key and create/update historic records based on the changes.
If you update an Entity with no valid date-time, then the default attribute values are updated within the 'normal' Entity record.
These default values are returned when querying an Entity without a timestamp, or when no historic records are found for the timestamp provided.
Note that there is a default limit of 1,000 historic records per Entity ID unless an upgraded limit is discussed.To request for historic data, simply use the "HistoricPoint=an_iso_8601_date_time" query parameter during Entity or DataLab requests.
The latest historic record to that point in time will be returned. Records in the future will not be returned.
Note that historic records are applied to found Entity records after the filtering and sorting is done.Returned records will have additional metadata on what historic records were overlaid on the Entity record.
Below is a preview of how an Entity's data structure is extended to include historic metadata.
Get records directly
If you want to look through historic records directly without having them overlay on the Entity data, then you can use the below request.
Currently, it will return up 1,000 records within the specified date-time range for each requested for Entity ID.
Get historic records
Get stats
You can request stats about either an Entity Type or set of Entity IDs to get an overview of the historic data.
Get record stats for Entity IDs
Get record stats for Entity Type ID
Update records directly
You can skip the automatic creation of historic records by updating them directly.
Note that there is a default limit of 1,000 historic records per Entity ID unless an upgraded limit is discussed.
Update historic records
Delete records
You can delete historic records by requesting a date range to delete records within.