I tried this on many different versions of wowza including 4.8.5 and earlier, I tried on origin and edge servers. Live applications are working fine, you can watch them. Other rest API calls are working fine, except the one which gives the bytes in and bytes out
curl_setopt($ch, CURLOPT_URL, "http://" . $domain . ":8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/" . $appName . "/instances/_definst_/incomingstreams/myStream/monitoring/current");
It returns this
array ( 'serverName' => '_defaultServer_', 'applicationInstance' => '_definst_', 'name' => 'myStream', 'uptime' => 0, 'bytesIn' => 0, 'bytesOut' => 0, 'bytesInRate' => 0, 'bytesOutRate' => 0, 'totalConnections' => 0, 'connectionCount' => array ( 'RTMP' => 0, 'MPEGDASH' => 0, 'CUPERTINO' => 0, 'SANJOSE' => 0, 'SMOOTH' => 0, 'RTP' => 0, ),
I also tried this
curl_setopt($ch, CURLOPT_URL, "http://" . $domain . ":8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/". $appName ."/monitoring/current");
Same result, only the name changes. I want to pass a live application name and get the bytesIn and bytesOut for that application, I don’t want to get 0.
Where should I pass the parameter for the curl request?