Is it possible to get the following information through the rest api?:
tx-bits-per-second
rx-bits-per-second
The command would be: /interface/monitor-traffic wlan1 once but I could not get to run in through the api. I think id have to do it through the POST methode as it is descriped in the documentation https://help.mikrotik.com/docs/display/ROS/REST+API
I think: ip/rest/interface/monitor-traffic?interface=wlan1 is the way to do it but it needs somehow the once param…
Mmm thats a thing but not exactly what im trying to do. I can messure the bandwith between 2 tiks but i want to know the traffic of the interface wlan1 for exampe…
I was also looking for an answer to the OPs exact question and I found a few additional things that I thought could be good to know.
Using “duration”: “2s” will perform two one second measurements and return them in a list (indexed by the .section key). So, if we only want one measurement we set “duration”: “1s”.
We can use the .proplist property to filter out the exact information we want: rx-bits-per-second and tx-bits-per-second.