question

Upvotes
Accepted
1 0 0 1

RTDS Rest API how to get update rate from ADS per user not per mount

Hi Team

Is there a way to get updateRate value per User and not per mount via RestAPI ?

Currently it is possible to get updateRate from RestAPI using URL like this:

http://ADS_IPADDRESS:RESTAPI_PORT/sharedmem/classes/SinkDistMsgs/instances/all/variables/updateRate

Result is like this :
{"Instance":"XXXXXX.1.ads.userDatabase.mount27.outgoingMessages","Class":"SinkDistMsgs","Variables":[{"Name":"updateRate","Type":"Numeric","Value":575}]},
"Instance":"XXXXXX.1.ads.userDatabase.mount27.outgoingMessages"
All user mounts:

http://ADS_IPADDRESS:RESTAPI_PORT/sharedmem/classes/ConsumerAttributes.SinkDist/instances/all/variables/loginName

{"Instance":"XXXXX.1.ads.userDatabase.mount27.attributes","Class":"ConsumerAttributes.SinkDist","Variables":[{"Name":"loginName","Type":"String","Value":"RSSL_mountTEST"}]},

{"Instance":"XXXXX.1.ads.userDatabase.mount28.attributes","Class":"ConsumerAttributes.SinkDist","Variables":[{"Name":"loginName","Type":"String","Value":"RSSL_mountTEST"}]},

In Instance value there is no username and only mount number (mount27) so there is no easy way to corelate it with user username, and even if it is (using different URL to get all mounts of a user), the mount number are reset after ADS restart. It is not a good idea to keep updateRate in database corelated to mount number for graph purposes, because after ADS restart a different user can mount with the same mount number as previous user.

Is there any way to get aggregated updateRate per user in RestAPI and not per mount/ipcSession ?

Thanks

trep#productrest-apiADSADH
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
86.3k 292 53 79

@mariusz.swiech1

Thank you for reaching out to us.

Please contact the RTDS support team directly via MyAccount to answer this question.

Otherwise, you can use the "adsmon" or "adsmon -mob" to navigate all instances and variables.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.