Flash Media Server |
|||
| Server Management ActionScript Language Reference > Server Management ActionScript Dictionary > getInstanceStats() | |||
getInstanceStats(app_instance)
app_instance A string that contains the name of the instance of the application for which you want performance statistics, in the form application_name/instance_name. You must specify both the application name and the instance name, separated by a slash (/), even if you want performance statistics for the default instance of the application.
For example, to specify the default instance for an application named ChatApp, specify ChatApp/_defInst_.
If the call succeeds, the server sends a reply information object with a level property of status, a code property of NetConnection.Call.Success, and a data property that is an object. The data object has the following properties:
|
Property |
Description |
|---|---|
|
|
ActionScript Date object; time the instance was launched. |
|
|
Number; length of time, in seconds, the instance has been running. |
|
|
Number; total number of messages processed by this instance of the application. |
|
|
Number; total number of messages sent by this instance of the application. |
|
|
Number; total number of messages dropped by this instance of the application. |
|
|
Number; total number of bytes read by this instance of the application. |
|
|
Number; total number of bytes written by this instance of the application. |
|
|
Number; total number of connection attempts accepted by this application. |
|
|
Number; total number of connection attempts rejected by this application. |
|
|
Number; total number of connections currently active. |
|
|
Number; total number of socket connections to this instance of the application since the instance was started. |
|
|
Number; total number of socket disconnections from this instance of the application since the instance was started. |
|
|
Object that contains script engine performance data. The following are properties of the script object:
|
|
|
Number; total number of normal connections. |
|
|
Number; total number of connections through a remote edge. |
|
|
Number; total number of remote edges that are connected. |
|
|
Number; total number of service connections. |
|
|
Number; total number of services requested. |
|
|
Number; total number of administrator connections. |
|
|
Number; total number of debug connections. |
If the call fails, the server sends a reply information object with a level property of error and a code property of NetConnection.Call.Failed or a more specific value, if available. Some objects might also have a description property that contains a string describing the cause of the failure.
Gets the performance data for a specified instance of an application.
If you only need information about the performance of a specific script, use the getScriptStats method.
getActiveInstances(), getAppStats(), getScriptStats()