统计功能
所有文档

          音视频直播 LSS

          统计功能

          查询统计相关的请求和响应参数,请参考统计接口

          getDomainStatistics

          查询特定Domain的统计数据。

          GetDomainStatisticsRequest request = new GetDomainStatisticsRequest();
          request.withDomain(yourDomain).withStartDate("20161018").withEndDate("20161019").withAggregate(Boolean.TRUE);      
          GetDomainStatisticsResponse response = lssClient.getDomainStatistics(request);

          getDomainSummayStatistics

          查询当前用户所有Domain的统计概要。

          GetDomainSummaryStatisticsRequest request = new GetDomainSummaryStatisticsRequest();
          request.withStartTime("2016-10-18T01:00:00Z").withEndTime("2016-10-19T00:00:00Z");
          GetDomainSummaryStatisticsResponse response = lssClient.getDomainSummaryStatistics(request);

          getAllDomainsPlayCout

          查询当前用户所有Domain的总请求数。

          GetAllDomainsStatisticsRequest request = new GetAllDomainsStatisticsRequest();
          request.withStartTime("2016-10-17T16:00:00Z").withEndTime("2016-10-19T00:00:00Z").withTimeInterval("LONG_TERM");
          GetAllDomainsPlayCountResponse response = lssClient.getAllDomainsPlayCount(request);

          getOneDomainPlayCount

          查询特定Domain的请求数。

          GetOneDomainStatisticsRequest request = new GetOneDomainStatisticsRequest();
          request.withDomain(domain).withStartTime("2016-09-18T00:00:00Z")
            .withEndTime("2016-09-18T08:00:00Z").withTimeInterval("MID_TERM");
          GetOneDomainPlayCountResponse response = lssClient.getOneDomainPlayCount(request);

          getAllDomainsBandwidth

          查询当前用户所有Domain的总带宽。

          GetAllDomainsStatisticsRequest request = new GetAllDomainsStatisticsRequest();
          request.withStartTime("2016-10-18T00:00:00Z")
            .withEndTime("2016-10-18T00:20:00Z").withTimeInterval("SHORT_TERM");
          GetAllDomainsBandwidthResponse response = lssClient.getAllDomainsBandwidth(request);

          getOneDomainBandwidth

          查询特定Domain的带宽。

          GetOneDomainStatisticsRequest request = new GetOneDomainStatisticsRequest();
          request.withDomain(domain).withStartTime("2016-10-18T00:00:00Z")
            .withEndTime("2016-10-18T00:20:00Z").withTimeInterval("SHORT_TERM");
          GetOneDomainBandwidthResponse response = lssClient.getOneDomainBandwidth(request);

          getAllDomainsTraffic

          查询当前用户所有Domain的总流量。

          GetAllDomainsStatisticsRequest request = new GetAllDomainsStatisticsRequest();
          request.withStartTime("2016-10-17T16:00:00Z").withEndTime("2016-10-20T04:00:00Z").withTimeInterval("LONG_TERM");
          GetAllDomainsTrafficResponse response = lssClient.getAllDomainsTraffic(request);

          getOneDomainTraffc

          查询特定Domain的流量。

          GetOneDomainStatisticsRequest request = new GetOneDomainStatisticsRequest();
          request.withDomain(domain).withStartTime("2016-10-18T04:00:00Z").withTimeInterval("LONG_TERM");
          GetOneDomainTrafficResponse response = lssClient.getOneDomainTraffic(request);

          listDomainStatistics

          查询当前用户的所有Domain数据。

          ListDomainStatisticsRequest request = new ListDomainStatisticsRequest();
          request.withStartTime("2016-10-18T04:00:00Z")
            .withEndTime("2016-10-20T04:00:00Z")
            .withKeywordType("domain")
            .withKeyword("test")
            .withOrderBy("duration desc");
          ListDomainStatisticsResponse response = lssClient.listDomainStatistics(request);

          listStreamStatistics

          查询当前用户特定Domain下的所有Stream数据。

          ListStreamStatisticsRequest request = new ListStreamStatisticsRequest();
          request.withDomain(domain).withApp("test")
            .withStartTime("2016-10-18T04:00:00Z").withEndTime("2016-10-20T04:00:00Z")
            .withKeyword("stream").withOrderBy("downstream")
            .withPageNo(1).withPageSize(5);
          ListStreamStatisticsResponse response = lssClient.listStreamStatistics(request);

          getStreamStatistics

          查询特定Domain下的特定Stream数据。

          GetStreamStatisticsRequest request = new GetStreamStatisticsRequest();
          request.withDomain(domain).withApp(app).withStream(stream).withAggregate(false)
            .withStartDate("20161019").withEndDate("20161020");
          GetStreamStatisticsResponse response = lssClient.getStreamStatistics(request);

          listRealTimeStreamStatistics

          查询特定Domain下实时stream的观看人数与带宽数据。

          ListRealtimeStreamStatisticsRequest request = new ListRealtimeStreamStatisticsRequest();
          request.withPlayDomain(playDomain).withApp(app);
          ListRealtimeStreamStatisticsResponse response = lssClient.listRealTimeStreamStatistics(request);
          上一篇
          stream管理
          下一篇
          通知功能