cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

how to use postman call optimization Service in Thingworx Analytics?

tqiu
5-Regular Member

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

 

 

ACCEPTED SOLUTION

Accepted Solutions
cmorfin
19-Tanzanite
(To:tqiu)

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

 

 

View solution in original post

5 REPLIES 5
cmorfin
19-Tanzanite
(To:tqiu)

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

 

tqiu
5-Regular Member
(To:cmorfin)

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

cmorfin
19-Tanzanite
(To:tqiu)

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

 

 

tqiu
5-Regular Member
(To:cmorfin)

Thanks a lot, Christophe.

 

Now I am trying to print all result from realtimescore by a thing(THING_OPTDEMO) derived from PrescriptiveMicroserver, while it always prompt "THING_OPTDEMO is not connected" when we try to call that by scripts. Can somebody indicate how can we get a thing connected?

cmorfin
19-Tanzanite
(To:tqiu)

Hi Terry

 

I see that you just opened a case for this  question, so the investigation will be done through it.

Note that if you have new questions it is best to open new thread rather than adding to an existing one unrelated.

 

Thanks

Christophe

Announcements


Top Tags