public class LiveOnlineUserByStreamRequest extends LiveCommonFieldRequest
获取按流维度的直播在线人数数据, 单位:每分钟的在线人数
支持按指定的起止时间查询,两者需要同时指定
支持批量流名过滤查询,多个流名用逗号(半角)分隔
支持多计费区域查询,多个计费区域用逗号(半角)分隔
最多可获取最近62天内,7天跨度的数据。(注意: 按流名维度的数据,只保留2个月)
统计粒度:1分钟粒度;5分钟粒度;10分钟粒度;20分钟粒度;1小时粒度;4小时粒度;8小时粒度;1天粒度;以上粒度的在线人数均取该粒度时间段的在线人数的峰值 (注意: 需要按统计粒度来汇聚,用于在界面上展示。)
说明:
按流名维度的数据,返回时并不按照“域名”维度汇聚。如果需要按域名维度的数据,请按单个域名过滤
| Constructor and Description |
|---|
LiveOnlineUserByStreamRequest() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
buildParams()
生成get请求的请求参数
|
GeneralRequestParam |
getGeneralRequestParam()
获取访问api,公用请求参数对象
|
String |
getGranularity() |
String |
getResultType() |
String |
getStreamUrls() |
void |
setGranularity(String granularity) |
void |
setResultType(String resultType) |
void |
setStreamUrls(String streamUrls) |
getEndTime, getGranularity, getRegions, getStartTime, setEndTime, setRegions, setStartTimepublic String getStreamUrls()
public void setStreamUrls(String streamUrls)
public String getResultType()
public void setResultType(String resultType)
public String getGranularity()
public void setGranularity(String granularity)
public Map<String,String> buildParams() throws KscClientException, ParseException
GeneralRequestbuildParams in interface GeneralRequestbuildParams in class LiveCommonFieldRequestKscClientExceptionParseExceptionpublic GeneralRequestParam getGeneralRequestParam()
GeneralRequestgetGeneralRequestParam in interface GeneralRequestgetGeneralRequestParam in class LiveCommonFieldRequestCopyright © 2023. All rights reserved.