The cumulative distribution function (cdf) gives the probability that a value is less than or equal to a threshold.
In NRQL, you now can use the cdfPercentage()
function to show what percentage of a numeric or distribution metric attribute's values are less than one or more thresholds. The getCdfCount()
function returns how many of a numeric or distribution metric attribute's values are less than a threshold.
For example, this query returns the percentages of page views where first paint happens in 0.5 seconds or less, and in 1 second or less:
Take a look at our documentation on cdfPercentage() and getCdfCount() to learn more!