AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Indicate sampling rate when sampling is used (instead of just containsSampledData) #304

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
CURRENT BEHAVIOUR:
Currently, the containsSampledData boolean is used to indicate whether the 
response contains sampled data. The problem is that when sampled data is used 
(containsSampledData=true) there is no way of knowing what the corresponding 
sampling rate is.

REQUESTED BEHAVIOUR:
Add a field in the response to indicate what the sampling rate applied was when 
the response contains sampled data (maybe get rid of containsSampledData 
altogether, and just use samplingRate=0 when no sampling is used, and 
samplingRate=X when a sampling rate of X% was applied).

USE CASES:
In order to know how much we can trust sampled data, we need to know how 
representative the sample is. The GUI does return the sampling rate when 
sampling is applied, so should the API.

Original issue reported on code.google.com by ciselsev...@gmail.com on 13 Jun 2013 at 2:10