zoukankan      html  css  js  c++  java
  • 获取FMS的状态信息

    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();     
    };
  • 相关阅读:
    服务端集成支付宝踩过的坑RSA、RSA2
    javascript预览图片——IT轮子系列(九)
    winform 写App.config配置文件——IT轮子系列(八)
    登录-添加页面
    登录-Login页面
    登录-控制器
    登录-控制器验证
    登录-dal
    登录-数据库模型
    登录-存储过程
  • 原文地址:https://www.cnblogs.com/fuland/p/3779541.html
Copyright © 2011-2022 走看看