Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SCHEDULER.every '5s' do
stats = Requests::Wordpress.new.stats
send_event(
'page_views',
current: stats['visitors_today'],
last: stats['visitors_yesterday']
)
stars = Requests::Github.new('https://github.com/sparklemotion/nokogiri').stars_count
send_event('stars_count', current: stars)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.