Before Updating the ThingWorx Analytics Server
After you find and record the unique model identifier from ThingWorx, you need to download the anomaly model (a PMML file) from your existing ThingWorx Analytics server. Open a REST client and perform the following steps:
1. Using the unique model identifier, make the following GET call to find the ID of the model file where it’s stored in the old external Results service:
http://<old-Results-IP:Port>/results/models?name=AnomalyDetectionModelFor_<unique-identifier>
2. From the returned JSON output, find and make a note of the ID of the model. The ID is a number such as 123.
3. Using the returned ID, make the following GET call to download the anomaly model file:
http://<old-Results-IP:Port>/results/models/<ID>/models.xml
4. Store the downloaded file for use later in the process.
Was this helpful?