Skip to content

web-connect/new_relic_insights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Relic Insights

This is a simple ruby client which implements the New Relic Inights REST API. It is in no way affiliate with New Relic.

Installation

Add this line to your application's Gemfile:

gem 'new_relic_insights'

And then execute:

$ bundle

Or install it yourself as:

$ gem install new_relic_insights

Usage

# initiate a client
@insights = NewRelicInsights.new ACCOUNT_ID, ACCOUNT_API_KEY

# build a hash to send to New Relic
my_event_data_hash = {:name=>'random', :foo=>'bar'}

# send to new relic
@insights.send_event 'some_table_name', my_event_data_hash

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/web-connect/new_relic_insights.

About

A ruby client for the New Relic Insights REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published