Analytics example

Shows how to use the analytics API to fetch metrics over an arbitrary time period, in this case hourly over the past 24 hours.