百度智能云

All Product Document

          CDN

          Statistical Interface (old version)

          In the statistics interface, all input and output time is UTC time.

          Query Domain Name pv

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 // Statistical time granularity, in seconds 
          	 $period = 300; 
          	 $withRegion = 'true'; 
          	 $resp = $client->getDomainPvStat($domain, $startTime, $endTime, $period, $withRegion); 

          Note

          1. When the domainName is not specified, the result of the query return is the sum of the pv statistics of all the user’s accelerated domain names.
          2. When carrying withRegion parameter request, the operator statistics of different regions is returned.

          Query Domain Name Traffic

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 // Statistical time granularity, in seconds 
          	 $period = 300; 
          	 $withRegion = 'true'; 
          	 $resp = $client->getDomainFlowStat($domain, $startTime, $endTime, $period, $withRegion); 

          Note

          1. When domainName is not specified, return the sum of traffic statistics of all accelerated domain names of the user.
          2. When carrying withRegion parameter request, the operator statistics of different regions is returned.

          Query Domain Name Origin Traffic

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 // Statistical time granularity, in seconds 
          	 $period = 300; 
          	 $resp = $client->getDomainSrcFlowStat($domain, $startTime, $endTime, $period); 

          Note When domainName is not specified, return the sum of status code statistics of all accelerated domain names of the user.

          Query Domain Name Status Code Statistics

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 // Statistical time granularity, in seconds 
          	 $period = 300; 
          	 $withRegion = 'true'; 
          	 $resp = $client->getDomainHttpCodeStat($domain, $startTime, $endTime, $period, $withRegion); 

          Note

          1. When domainName is not specified, return the sum of traffic statistics of all accelerated domain names of the user.
          2. When carrying withRegion parameter request, the operator statistics of different regions is returned.

          Query the Domain Name Hit Rate

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 // Statistical time granularity, in seconds 
          	 $period = 300; 
          	 $resp = $client->getDomainHitRateStat($domain, $startTime, $endTime, $period); 

          Note When domainName is not specified, return the average of the hit rate of all accelerated domain names of the user.

          Query the url with Top 100 Domain Name Accesses in the Past

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 //Statistical time granularity, in seconds, only support one-hour granularity. 
          	 $period = 3600; 
          	 $resp = $client->getDomainTopUrlStat($domain, $startTime, $endTime, $period); 

          Note When domainName is not specified, return the sum of statistics of all accelerated domain names of the user.

          Query the Referer with Top 100 Domain Name Accesses in the Past

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 //Statistical time granularity, in seconds, only support one-hour granularity. 
          	 $period = 3600; 
          	 $resp = $client->getDomainTopRefererStat($domain, $startTime, $endTime, $period); 

          Note When domainName is not specified, return the sum of statistics of all accelerated domain names of the user.

          Query Domain Name Average Rate

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 // Statistical time granularity, in seconds 
          	 $period = 300; 
          	 $resp = $client->getDomainAvgSpeedStat($domain, $startTime, $endTime, $period); 

          Note When domainName is not specified, return the average of the hit rate of all accelerated domain names of the user.

          Query the Number of Unique Visits of the Domain Name

          	 $domain = 'test.domain.com'; 
          	 $startTime = '2016-10-07T16:00:00Z'; 
          	 $endTime = '2016-10-08T09:43:00Z'; 
          	 //Statistical time granularity, in seconds, only support one-hour granularity. 
          	 $period = 3600; 
          	 $resp = $client->getDomainUvStat($domain, $startTime, $endTime, $period); 

          Note When domainName is not specified, return the sum of the number of independent accesses of all accelerated domain names of the user.

          Previous
          Statistical Interface (new version)
          Next
          Log Interface