question

Upvotes
Accepted
1 0 0 0

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

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 using RTDS RestAPI and not per mount/ipcSession ?

#productapiADS
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
24.5k 63 15 21
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.