
121
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Using the Administration API
Last updated 11/28/2012
/* Add the appName parameter to the request. */
/* Examples include "vod" and "live". */
myService.request.appName = appName.text;
myService.send();
}
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout paddingTop="10" paddingLeft="10"/>
</s:layout>
<s:Label text="Enter an app name (e.g., live or vod):"
fontSize="14"
fontWeight="bold"/>
<s:HGroup>
<s:TextInput id="appName" width="259"/>
<s:Button id="button_btn" label="Get App Stats" click="doButtonClick()"/>
</s:HGroup>
<s:Label text="App Stats:" fontSize="14" fontWeight="bold"/>
<s:TextArea id="outputBox" height="800" width="359"/>
</s:Application>
This application was written for Flex 4.
If the call is successful, the
getAppStats
method returns a result similar to the following:
<result>
<level>status</level>
<code>NetConnection.Call.Success</code>
<timestamp>6/30/2010 2:42:21 PM</timestamp>
<data>
<launch_time>6/30/2010 2:42:03 PM</launch_time>
<up_time>17</up_time>
<bw_in>17060</bw_in>
<bw_out>17501</bw_out>
<bytes_in>290075</bytes_in>
<bytes_out>271130</bytes_out>
<msg_in>202</msg_in>
<msg_out>61</msg_out>
<msg_dropped>0</msg_dropped>
<total_connects>2</total_connects>
<total_disconnects>0</total_disconnects>
<connected>2</connected>
<normal_connects>2</normal_connects>
<virtual_connects>0</virtual_connects>
<group_connects>0</group_connects>
<service_connects>0</service_connects>
<service_requests>0</service_requests>
<admin_connects>0</admin_connects>