网页加速、下载分发、动态加速、全站加速、点播分发、直播分发、上传加速、移动加速、S-P2P、PCDN、应用性能管理、WEB应用防火墙、BotGuard爬虫管理、WSS、DMS、DDoS云清洗、应用安全加速解决方案、IPv6一体化解决方案、电商安全加速解决方案、金融安全加速解决方案、政企安全加速解决方案、应用安全解决方案、区块链安全加速解决方案、IPv6安全加速解决方案
查询5分钟粒度httpdns解析量。
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
cust | String | 否 | 合并账号下的某个客户的英文名,当合并账号要查看子客户的信息时,必须填写子客户的英文名 |
date | String | 否 | 查询的日期,日期格式为yyyy-mm-dd,不选或者为空时默认为当天; |
startdate | String | 否 | 查询的起始日期,日期格式为yyyy-mm-dd;此参数需与enddate参数配合,若存在date参数,则该参数无效 |
enddate | String | 否 | 查询的结束日期,日期格式为yyyy-mm-dd;此参数需与startdate参数配合,若存在date参数,则该参数无效。 |
channel | String | 否 | 查询的频道,多个频道值请用英文分号“;”,不选或者为空时默认为所查询客户的所有频道 |
accetype | String | 否 | 查询域名所属的加速类型,如accetype=web。多个请用英文分号“;”分隔开,不填或值为all表示所有类型 |
dataformat | String | 否 | 返回结果格式,支持格式为xml和json,默认为xml |
参数名称 | 类型 | 描述 |
---|---|---|
startdate | String | 开始时间,yyyy-mm-dd |
enddate | String | 结束时间,yyyy-mm-dd |
total | String | 总解析次数 |
peakTime | String | 峰值时间 |
peakValue | String | 峰值 |
time | String | 统计时间 |
text | String | 解析次数 |
#!/bin/bash username="example_username" apiKey="example_apikey" date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url "http://open.chinanetcenter.com/myview/HttpdnsStatistics" \ -X "POST" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/xml" \ -d "channel=www.test.com&startdate=2018-12-21&enddate=2018-12-21&dataformat=json"
{ "provider": { "name": "${ProviderName}", "type": "httpdns-statistics", "resultType": "1", "date": { "startdate": "2018-12-21", "enddate": "2018-12-23", "channel": { "name": "www.test.com", "peakTime": "2018-12-21 00:50:00", "peakValue": "123123", "httpdns": [ { "time": "2018-12-21 00:05:00", "text": "58876" }, { "time": "2018-12-21 00:10:00", "text": "56789" }, { "time": "2018-12-21 00:15:00", "text": "45767" }, { "time": "2018-12-21 00:20:00", "text": "67999" } ] } } } }