chartbeat

 

stats

Page history last edited by billy chasen 9 mos ago

About this call


 

This call returns historical stats about several metrics for the current month.  The stats are minimum values observed, maximum values observed, and average value observed.

 

Format


 

http://chartbeat.com/dashapi/stats/?host=[host]&apikey=[apikey]
 
  • host - Required.  The domain name to get stats about.
  • apikey - Required.  An api key generated here that gives access to this call.
  • jsonp - Optional.  Give the name of a function to wrap the return data in. Learn more here

 

Example


 

http://chartbeat.com/dashapi/stats/?host=chartbeat.com&apikey=abc123
 

Example return:

 

{
"write_avg": 14.54,
"write_max": 23,
"write_min": 2,
"write_cnt": 5351,
 

"return_avg": 10,
"return_min": 1,
"return_max": 21,
"return_cnt": 5351,
 

"new_avg": 12,
"new_min": 4,
"new_max": 32,
"new_cnt": 5351,
 

"domload_max": 23461,
"domload_min": 0,
"domload_avg": 159.02,
"domload_cnt": 5351,
 

"idle_max": 15,
"idle_min": 0,
"idle_cnt": 5351,
"idle_avg": 4.33,
 

"people_avg": 23.43,
"people_cnt": 5351,
"people_min": 10,
"people_max": 56,
 


"read_max": 13,
"read_cnt": 5351,
"read_min": 3,
"read_avg": 9.664
}
 

Return variables


 

Returns an object with the calculated values.

 

  • variable_min - The minimum observed value of that variable this month.
  • variable_max - The maximum observed value of that variable this month.
  • variable_avg - The average observed value of that variable this month.
  • variable_cnt - The number of observations made.

 

For an explanation of the variables, please view the snapdays API documentation.

 

Comments (0)

You don't have permission to comment on this page.