public class HitRateDetailRequest extends CommonFieldRequest
获取域名流量命中率、请求数命中率数据,单位:百分比
支持按指定的起止时间查询,两者需要同时指定
支持批量域名查询,多个域名ID用逗号(半角)分隔
最多可获取最近三年内93天跨度的数据
统计粒度:5分钟粒度;10分钟粒度;20分钟粒度;1小时粒度;4小时粒度;8小时粒度;1天粒度;
时效性:5分钟延迟
说明:
请求数命中率=[1-回源请求数\/边缘请求数]*100%
流量命中率=[1-回源流量\/边缘流量]*100%
当边缘请求数或边缘流量为0时,命中率为0
| Constructor and Description |
|---|
HitRateDetailRequest() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
buildParams()
生成get请求的请求参数
|
GeneralRequestParam |
getGeneralRequestParam()
未实现,留在子类中实现
|
String |
getGranularity() |
String |
getHitType() |
String |
getResultType() |
void |
setGranularity(String granularity) |
void |
setHitType(String hitType) |
void |
setResultType(String resultType) |
getCdnType, getDomainIds, getEndTime, getGranularity, getStartTime, setCdnType, setDomainIds, setEndTime, setStartTimepublic String getResultType()
public void setResultType(String resultType)
public String getGranularity()
public void setGranularity(String granularity)
public String getHitType()
public void setHitType(String hitType)
public Map<String,String> buildParams() throws KscClientException, ParseException
GeneralRequestbuildParams in interface GeneralRequestbuildParams in class CommonFieldRequestKscClientExceptionParseExceptionpublic GeneralRequestParam getGeneralRequestParam()
CommonFieldRequestgetGeneralRequestParam in interface GeneralRequestgetGeneralRequestParam in class CommonFieldRequestCopyright © 2023. All rights reserved.