API for client
-
Thanks for all the great work on yccaster!
I was wondering if it is possible to feed the client username instead of the address for the /clients API endpoint. The address isn't really useful, I'm more interested in collecting stats on usage by username.
So this:
{"data":[{"address":"192.168.100.23:44820","bytes_transferred":546848,"started_at":1708986854}]}
becomes something like:
{"data":[{"username":"mvincent","address":"192.168.100.23:44820","bytes_transferred":546848,"started_at":1708986854}]}
Thanks!
-
Hi @neshmi, thank you for your message.
Currently we do not store usernames or mount point names in caster. But each connection has a uniqueconnection_id
. Thisconnection_id
is present in all events and auth requests. So you can match events with a particular username by it.