Skip to main content
5-Regular Member
May 30, 2018
Solved

how to use postman call optimization Service in Thingworx Analytics?

Hi,

I'am digging how to use postman call RealtimeScore  under AnalyticsServer_PrescriptiveThing/Services. I know the link

https://support.ptc.com/help/thingworx_hc/thingworx_analytics_8/thingworx_analytics_8/baggage/index.html#templates/PrescriptiveMicroserver.html

already show us on how to do that, and I also find the AnalyticsDatasetRef definition at this link

https://support.ptc.com/help/thingworx_hc/thingworx_analytics_8/thingworx_analytics_8/baggage/index.html#datashapes/AnalyticsDatasetRef.html

 

But I still want know how can I generate this long AnalyticsDatasetRef data shape, and how can I pass them into postman(need a real sample), as of now I got the "403 Forbidden" even I give authentication information to Header section within postman.

 

Thanks.

Terry

 

 

cmorfinAnswer
19-Tanzanite
June 4, 2018

Hi Terry

 

Just for the record, as we discussed offline

the format of modelUIr is of type http://<TWA server>/results/models/<jobId>

The format for dataset is parquet

 

Kind regards

Christophe

 

 

5 replies

19-Tanzanite
May 31, 2018

Hi

 

Maybe this article: https://www.ptc.com/en/support/article?n=CS271485 can be useful.

It gives some general info on how to build a REST API for Analytics, and it also have a link to a postman json collection with some REST call sample, so you can see how this has been built.

 

Hope this helps

Kind regards

Christophe

 

Translate
tqiu5-Regular MemberAuthor
5-Regular Member
June 4, 2018

Hi Morfin,

I knew this link, while I am still stuck in how to generate this long json content.

Now I am testing this  AnalyticsServer_PrescriptiveThing.RealtimeScore  by UI, and encounter error message as attached.

 I assigned modeluri as 

twx://TW.AnalysisServices.ModelRepository/P1/ds_gear_Mdemo_fa43be14-1381-4268-9289-de65297d6763.xml
datasetref as
database uri  ---   dataset:/e51f8cdf-5c38-4442-bed5-f46439a3fc1a

format ---   csv

 

Can somebody guide me whether something wrong for these inputs?

Thanks.

 

Regards,

Terry

Translate
cmorfin19-TanzaniteAnswer
19-Tanzanite
June 4, 2018

Hi Terry

 

Just for the record, as we discussed offline

the format of modelUIr is of type http://<TWA server>/results/models/<jobId>

The format for dataset is parquet

 

Kind regards

Christophe

 

 

Translate