开发者社区> 问答> 正文

如何查询回源流量?



DescribeDomainSrcFlowData



描述


获取加速域名的回源流量监控数据,单位bit
不指定StartTime和EndTime时,默认读取过去24小时的数据,同时支持按指定的起止时间查询,两者需要同时指定。

  • 支持批量域名查询,多个域名可用逗号(半角)分隔
  • 最多可获取最近90天的数据


请求参数

参数类型必要描述
ActionString操作接口名,系统规定参数取值:DescribeDomainSrcFlowData
DomainNameString若参数为空,默认返回所有加速域名合并后数据可输入需要查询的加速域名支持批量域名查询,多个域名用逗号(半角)分隔
StartTimeString获取数据起始时间点,日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mmZ最小数据粒度为5分钟不写默认读取过去24小时数据
EndTimeString结束时间需大于起始时间;获日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mmZ


返回参数

名称类型描述
DomainNameString加速域名信息
DataIntervalString每条记录的时间间隔,以秒为单位
StartTimeDateTime开始时间
EndTimeDateTime结束时间
SrcFlowDataPerIntervalUsageData[]每个时间间隔的回源流量数据


UsageData

名称类型描述
TimeStampString时间片起始时刻
ValueString详细使用数据


特殊错误码

错误代码描述Http 状态码语义
ThrottlingRequest was denied due to request throttling.503请求被流量控制限制
IllegalOperationIllegal domain, operation is not permitted.403非法域名, 无法操作
OperationDeniedYour account does not open CDN service yet.403未开通CDN服务
OperationDeniedYour CDN service is suspended.403CDN服务已被停止
InvalidDomain.NotFoundThe domain provided does not belong to you.404域名不存在或不属于当前用户
InvalidDomain.OfflineThe domain provided is offline.404域名已下线
ServiceBusyThe specified Domain is configuring, please retry later.403域名正在配置中, 请稍后再试
InvalidDomain.Configure_failedFailed to configure the provided domain.500域名配置失败
MissingParameterStartTime and EndTime can not be single.400StartTime和EndTime不能单独设置
InvalidStartTime.MalformedSpecified start time is malformed.400StartTime格式错误
InvalidEndTime.MalformedSpecified end time is malformed.400EndTime格式错误
InvalidEndTime.MismatchSpecified end time does not math the specified start time.400EndTime小于StartTime
InvalidStartTime.ValueNotSupportedSpecified end time does not math the specified start time.400EndTime和StartTime差值超过90天


示例


请求示例: http://cdn.aliyuncs.com?Action=DescribeDomainSrcFlowData&DomainName=test.com
&StartTime=2015-12-10T20:00Z
&EndTime=2015-12-10T21:00Z
&<公共请求参数>


返回示例:
JSON格式 {
    "DomainName": "test.com",
    "DataInterval": "300",
    "SrcFlowDataPerInterval": {
        "DataModule": [
            {
                "TimeStamp": "2015-12-10T21:00:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:35:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:50:00Z",
                "Value": "33886"
            },
            {
                "TimeStamp": "2015-12-10T20:05:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:10:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:55:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:30:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:25:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:00:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:40:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:15:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:45:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:20:00Z",
                "Value": "0"
            }
        ]
    },
    "RequestId": "A666D44F-19D6-490E-97CF-1A64AB962C57",
    "StartTime": "2015-12-10T20:00Z",
    "EndTime": "2015-12-10T21:00Z"
}


XML格式: <?xml version="1.0" ?>
<DescribeDomainSrcFlowDataResponse>
        <SrcFlowDataPerInterval>
                <DataModule>
                        <TimeStamp>2015-12-10T21:00:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:35:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:50:00Z</TimeStamp>
                        <Value>33886</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:05:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:10:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:55:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:30:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:25:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:00:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:40:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:15:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:45:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
                <DataModule>
                        <TimeStamp>2015-12-10T20:20:00Z</TimeStamp>
                        <Value>0</Value>
                </DataModule>
        </SrcFlowDataPerInterval>
        <DataInterval>300</DataInterval>
        <RequestId>0BF65673-45F2-4DE9-A83E-26702EE62182</RequestId>
        <DomainName>test.com</DomainName>
        <EndTime>2015-12-10T21:00Z</EndTime>
        <StartTime>2015-12-10T20:00Z</StartTime>
</DescribeDomainSrcFlowDataResponse>

展开
收起
青衫无名 2017-10-24 11:02:37 2814 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
霸下-七层流量清洗 立即下载
直播CDN-X - 白山直播CDN流传递链路优化 立即下载
负载均衡SLB热点问题解答 立即下载