PASnapshot - Scoped
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The PASnapshot API enables you to query information about Performance Analytics snapshots. Snapshots are the lists of records (sys_ids) that are collected at the time that the scores for those records are collected. A snapshot is made only for automated indicators with Collect records selected.
You can query information about a snapshot at a certain date using the indicator sys_id and date, and perform comparisons between snapshots for an indicator at different dates.
PASnapshot - getCompareIDs(String sys_id, Number date1, Number date2, String type)
Compares records in snapshots for a specified indicator at multiple dates, such as to identify records included in one snapshot but not the other.
Type | Description |
---|---|
String | A comma-separated list of sys_id values. |
Example
PASnapshot - getCompareQuery(String sys_id, Number date1, Number date2, String type)
Returns the query used to compare records in snapshots for a specified indicator at multiple dates.
Type | Description |
---|---|
String | The table, view, and encoded query as a JSON string. |
Example
PASnapshot - getIDs(String sys_id, Number date)
Returns the sys_id values for all records contained in the snapshot for a specified indicator at the specified date.
Name | Type | Description |
---|---|---|
sys_id | String | Indicator's sys_id. |
date | Number | Date when the snapshot was taken. Format: yyyymmdd |
Type | Description |
---|---|
String | A comma-separated list of sys_id values. |
Example
PASnapshot - getQuery(String sys_id, Number date)
Returns the query used to generate the snapshot for a specified indicator at the specified date.
Name | Type | Description |
---|---|---|
sys_id | String | Indicator's sys_id. |
date | Number | Date the snapshot was taken. Format: yyyymmdd |
Type | Description |
---|---|
String | The table, view, and encoded query as a JSON string. |