Child pages
  • View CDN Advanced Reporting
Skip to end of metadata
Go to start of metadata

To view CDN advanced reporting for HTTP PULL and HTTP PUSH resources:

GET /cdn_resources/resource_id/advanced_reporting.xml
GET /cdn_resources/resource_id/advanced_reporting.json

Get Advanced Bandwidth Reporting (including Cache utilization) XML request example:

curl -i -X GET -u user:userpass http://onapp.test/cdn_resources/resource_id/advanced_reporting.xml -d '<report><start>YYYY-MM-DD HH:MM:SS</start><end>YYYY-MM-DD HH:MM:SS</end><locations type="array"><location>location_id</location></locations></report>' -H 'Content-type: application/xml'

 

Get Advanced Bandwidth Reporting (including Cache utilization) JSON Request example:

curl -i -X GET -u user:userpass http://onapp.test/cdn_resources/resource_id/advanced_reporting.json -d '{"report":{"start":"YYYY-MM-DD HH:MM:SS","end":"YYYY-MM-DD HH:MM:SS","locations":["location_id"]}}' -H 'Accept: application/json' -H 'Content-type: application/json'


Where:

report - the array with the time points for generating statistics

start- the start date of the period for which the statistics should be generated

end - the end date of the period for which the statistics should be generated

locations - the location ID for which the statistics should be generated


The  default request returns Bandwidth and Caching report for the last five days covering all Locations.

Default XML Request:

curl -i -X GET -u user:userpass http://onapp.test/cdn_resources/resource_id/advanced_reporting.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

 

Get Advanced Status Codes Reporting XML API request example:

(for HTTP Pull request only)

curl -i -X GET -u user:userpass http://onapp.test/cdn_resources/resource_id/advanced_reporting.xml -d '<report><stats_type>status_codes</stats_type><start>YYYY-MM-DD HH:MM:SS</start><end>YYYY-MM-DD HH:MM:SS</end><locations type="array"><location>location_id</location></locations></report>' -H 'Content-type: application/xml'

 

Get Advanced Status Codes Reporting Json API request example:

(for HTTP Pull request only)

curl -i -X GET -u user:userpass http://onapp.test/cdn_resources/resource_id/advanced_reporting.json -d '{"report":{"stats_type":"status_codes", "start":"YYYY-MM-DD HH:MM:SS","end":"YYYY-MM-DD HH:MM:SS","locations":["location_id"]}}' -H 'Accept: application/json' -H 'Content-type: application/json'

 

Where:

report - the array with the time points for generating statistics

stats_type* - required parameter, in this case status_codes

start - the start date of the period for which the statistics should be generated

end - the end date of the period for which the statistics should be generated

locations - the location ID for which the statistics should be generated



 

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels