调用DescribeDcdnReportList查询所有的定制报表列表。
说明
- 该接口将返回所有定制报表的元数据,不包含具体报表的统计数据。
- 单用户调用频率:3次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDcdnReportList |
系统规定参数。取值:DescribeDcdnReportList。 |
ReportId | Long | 否 | 2 |
待查询的报表ID。如果不传该参数,默认查询所有报表。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Content | String | "data": [{"reportId":2,"deliver":{"report":{"title":"DomainPvUv","format":"chart","shape":"line","xAxis":"ds","yAxis":"cnt","legend":"cnt_type","header":["ds","cnt_type","cnt"]}}} |
报表列表。 |
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
请求ID。 |
参数 |
类型 |
描述 |
---|---|---|
reportId |
Long |
任务的请求ID。 |
deliver |
report |
报表样式。 |
参数 |
类型 |
描述 |
---|---|---|
title |
String |
报表标题。 |
format |
String |
报表类型。取值: chart:图表。 table:表格。 |
shape |
String |
图表类型。当format为table时,请忽略此字段。取值: line:曲线图。 pie:饼状图。 bar:柱状图。 |
header |
String[] |
报表的表头字段。 |
legend |
String |
图形的图例字段。 |
xAxis |
String |
图形x轴,没有则为空。 |
yAxis |
String |
图形y轴,没有则为空。 |
示例
请求示例
http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnReportList
&ReportId=2
&Permission=public
&<公共请求参数>
正常返回示例
XML
格式
<DescribeDcdnReportListResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<Content>
<data>
<reportId>2</reportId>
<deliver>
<report>
<title>DomainPvUv</title>
<format>chart</format>
<shape>line</shape>
<xAxis>ds</xAxis>
<yAxis>cnt</yAxis>
<legend>cnt_type</legend>
<header>ds</header>
<header>cnt_type</header>
<header>cnt</header>
</report>
</deliver>
</data>
<data>
<reportId>4</reportId>
<deliver>
<report>
<format>table</format>
<shape>line</shape>
<header>url</header>
<header>traf</header>
<header>traf_rate</header>
<header>acc</header>
<header>acc_rate</header>
<title>TopUrlByAcc</title>
</report>
</deliver>
</data>
</Content>
</DescribeDcdnReportListResponse>
JSON
格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"Content": {
"data": [
{
"reportId":2,
"deliver":{
"report":{
"title":"DomainPvUv",
"format":"chart",
"shape":"line",
"xAxis":"ds",
"yAxis":"cnt",
"legend":"cnt_type",
"header":[
"ds",
"cnt_type",
"cnt"
]
}
}
},
{
"reportId":4,
"deliver":{
"report":{
"format":"table",
"shape":"line",
"header":[
"url",
"traf",
"traf_rate",
"acc",
"acc_rate"
],
"title":"TopUrlByAcc"
}
}
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter | The specified parameter is invalid. | 参数错误 |
400 | TimeParseFailed | Failed to parse the time parameter. | 解析时间参数失败 |
400 | SubscriptionAlreadyExists | The subscription already exists. | 定制服务已开通 |
400 | SubscriptionNotFound | The subscription is not found. | 未开通定制服务 |
400 | NameAlreadyExists | The name already exists. | 名称已存在 |
400 | DeliverExceedLimit | The maximum number of subscribed tasks is exceeded. | 订阅任务个数已达上限 |
访问错误中心查看更多错误码。