public class CommonFieldRequest extends Object implements GeneralRequest
| Constructor and Description |
|---|
CommonFieldRequest() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
buildParams()
生成get请求的请求参数
|
String |
getCdnType() |
String |
getDomainIds() |
String |
getEndTime() |
GeneralRequestParam |
getGeneralRequestParam()
未实现,留在子类中实现
|
String |
getGranularity(String startTime,
String endTime)
计算查询粒度,当需要传递查询粒度参数时,如果没有赋值则通过此方法算一个默认值并给予赋值
如果期望不用默认值,自定义设置Granularity值即可
Granularity的取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度
|
String |
getStartTime() |
void |
setCdnType(String cdnType) |
void |
setDomainIds(String domainIds) |
void |
setEndTime(String endTime) |
void |
setStartTime(String startTime) |
public String getStartTime()
public void setStartTime(String startTime)
public String getEndTime()
public void setEndTime(String endTime)
public String getCdnType()
public void setCdnType(String cdnType)
public String getDomainIds()
public void setDomainIds(String domainIds)
public Map<String,String> buildParams() throws KscClientException, ParseException
GeneralRequestbuildParams in interface GeneralRequestKscClientExceptionParseExceptionpublic String getGranularity(String startTime, String endTime) throws ParseException
startTime - endTime - ParseExceptionpublic GeneralRequestParam getGeneralRequestParam()
getGeneralRequestParam in interface GeneralRequestCopyright © 2023. All rights reserved.