damago1
posted this
22 September 2020
- Last edited 22 September 2020
Ok. I have found this.
you have to connect to the exact instance you want to check users in. So give port number of specific application when logging in or making API calls. Not port of AMP instance manager but port of the instance.
you can use the API CALL:
Core/GetUserList
- this returns simply a list of users
or
Core/GetStatus
- here you will have inside information on the users too, in the form of a number :
example output:
{"State":50,"Uptime":"0:00:00:00","Metrics":{
"CPU Usage":{"RawValue":0,"MaxValue":100,"Percent":0,"Units":"%","Color":"#EDC240","Color2":"","Color3":"#000"},
"Memory Usage":{"RawValue":0,"MaxValue":1024,"Percent":0,"Units":"MB","Color":"#AFD8F8"},
"Active Users":{"RawValue":0,"MaxValue":10,"Percent":0,"Units":"","Color":"#CB4B4B"},
"TPS":{"RawValue":0,"MaxValue":20,"Percent":0,"Units":"TPS","Color":"#fff"}}}