码迷,mamicode.com
首页 > 其他好文 > 详细

获取FMS的状态信息

时间:2014-06-10 17:00:22      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:des   class   code   http   tar   get   

application.getStats()

application.getStats()

Returns statistics about an application.

Returns

An Object whose properties contain statistics about the application instance. The following table describes the properties:

Property

Description

bw_in

Total number of kilobytes received.

bw_out

Total number of kilobytes sent.

bytes_in

Total number of bytes sent.

bytes_out

Total number of bytes received.

Note: For billing, use the sc-bytes field in the Access log.

msg_in

Total number of Real-Time Messaging Protocol (RTMP) messages sent.

msg_out

Total number of RTMP messages received.

msg_dropped

Total number of RTMP messages dropped.

server_bytes_in

Total number of bytes received by the server.

server_bytes_out

Total number of bytes sent by the server.

total_connects

Total number of clients connected to an application instance.

total_disconnects

Total number of clients who have disconnected from an application instance.

Example

The following example outputs application statistics to the Live Log panel in the Administration Console:

function testStats(){ 
    var stats = application.getStats(); 
    for(var prop in stats){ 
         trace("stats." + prop + " = " + stats[prop]); 
    } 
} 
 
application.onConnect = function(client){ 
    this.acceptConnection(client);  
    testStats();     
};

获取FMS的状态信息,布布扣,bubuko.com

获取FMS的状态信息

标签:des   class   code   http   tar   get   

原文地址:http://www.cnblogs.com/fuland/p/3779541.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!