getAppStats()

Availability

Usage

getAppStats(app_name)

Parameters

app_name A string that contains the name of the application for which you want performance data.

Returns

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

accepted

Number; total number of connection attempts accepted by this application.

bytes_in

Number; total number of bytes read by this application.

bytes_out

Number; total number of bytes written by this application.

connected

Number; total number of connections currently active.

launch_time

ActionScript Date object; time the application started.

msg_dropped

Number; total number of messages dropped by this application.

msg_in

Number; total number of messages processed by this application.

msg_out

Number; total number of messages sent by this application.

normal_connects

Number; total number of normal connections.

virtual_connects

Number; total number of connections through a remote edge.

group_connects

Number; total number of remote edges that are connected.

service_connects

Number; total number of service connections.

service_requests

Number; total number of services requested.

admin_connects

Number; total number of admin connections.

debug_connects

Number; total number of debug connections.

rejected

Number; total number of connection attempts rejected by this application.

total_connects

Number; total number of socket connections to the application since the application was started.

total_disconnects

Number; total number of disconnections from the application since the application was started.

total_instances_loaded

Number; total number of instances that have been loaded since the application started.

This property does not represent the total number of active instances loaded. To get the number of active instances loaded, subtract the value of total_instances_unloaded from total_instances_loaded.

total_instances_unloaded

Number; total number of instances that have been unloaded since the application started.

up_time

Number; time, in seconds, the application has been running.

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.

Description

Gets aggregate performance data for all instances of the specified application.

See also

getApps(), getInstanceStats()