The DCS API (JSON) Importer allows consumption data to be imported into Sigma by connecting to the Coherent Research Public API for a specific data point reference.

The API specification is documented here: https://github.com/coherent-research/dcs-documentation/blob/master/DcsPublicApiDescription.md

Channel Configuration

There are numerous parameters that can be sent in a request to the API which are configurable at a Channel level. These are passed in as parameters on the Channel ID string, which is of the following format:

coh://<UniqueId>/<BackStop_datetime>/<BackTo_Datetime>/<interpolated>/<calibrated>

The parameters are:

There is a wizard in the Sigma screens when setting up the Channel ID to allow these parameters to be specified as required:

Of the parameters than can be specified:

 

Schedule Execution

The Sigma Schedule will make the request for each Channel it needs to run for. Any channel starting with “coh://” is included in the list to run for.

The request will be made to the API using the information on the Channel.

API Response

The readings provided in the response will be interpreted and stored in Sigma as follows:

 There is some other background configuration which controls the system behaviour if the API request received a “429” response due to implemented rate limiting. There are two parameters controlled by TEAM in the configuration of the product (not user configurable):

 

Setting up a Schedule

This is achieved using the “Importing” activity. The importer is called “DCS API (JSON) Schedule” (note the legacy importer is called “DCS Schedule”).

The Importer Options allows the date range to imported to be specified. Note, this will be in the context of the run date.

For example, the below date range (15th March to 24th March) will be in the context of the schedule start date of 25th March based on a setting which will need to be enabled in a subsequent screen. When it next runs on 26th March, the date range will be 16th March to 25th March, and so on.

In the next “Source Options” screen, the API connection User credentials will need to be specified.

 In the “Schedule Options” screen, the frequency of the Schedule execution will need to be set.

Please note the Start Time – to allow a rolling importing date range window to be determined, ensure the “Adjust dates relative to date of execution” to be ticked. This will ensure as the execution date moves forwards, so foes the date range for the data being imported.

After clicking “Next” and then “Schedule” on the subsequent screen, the Schedule has been stored and will now run as specified.

Failed Schedules

The system will log out failures as part of each applicable Schedule Execution. Such details will be visible in the “Schedule Management” activity.

The schedule can be selected, and the “Run History” button will show a pop-up with the past few months of execution for the Schedule, along with their status. A particular Schedule Execution can be drilled into (if the status is “Success” or “Partial”) to see the individual channel activity and the date range of data for each one that has been imported.

Where a Schedule has “Failed” it will be possible to download a Log file to view the associated errors. Some of the common expected failures and how they will appear are listed below.

More information on these screens cane be found here: Managing Schedules

 

Incorrect Webservice User Credentials

Incorrect Channel ID

Exceeded the “Too Many Requests” Responses Received Threshold

Exceeded the “Too Many Requests Wait Time” Response Threshold