oldrelic 0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/README.md +19 -0
  2. metadata +57 -0
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # New Relic API Wrapper #
2
+
3
+ ## Make requests to any route ##
4
+ * For https://api.newrelic.com/api/v1/applications/xxx/data.json use
5
+
6
+ `n = Oldrelic::API.new(new_relic_api_key)`
7
+
8
+ `r = n.get_api('v1', 'applications', app_id, 'data.json', data_hash)`
9
+
10
+ `puts Yajl::Parser.new.parse(r)`
11
+
12
+ ## First part of the method is the request type ##
13
+ * `n.get_accounts` calls GET /accounts
14
+
15
+ ## Pass in any further path elements ##
16
+ * `n.get_accounts(id)` calls GET /accounts/xxx
17
+
18
+ ## Pass in parameters as a hash last ##
19
+ * `n.get_accounts('settings', thishash)` calls GET /accounts/settings, with params parsed out of the thishash
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oldrelic
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.4'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jen Oslislo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-14 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: faraday
16
+ requirement: &70313417422000 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.7.6
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70313417422000
25
+ description: Ruby Wrapper for Heroku API and stuff.
26
+ email: joslislo@gmail.com
27
+ executables: []
28
+ extensions: []
29
+ extra_rdoc_files:
30
+ - README.md
31
+ files:
32
+ - README.md
33
+ homepage: http://github.com/poeks/oldrelic
34
+ licenses: []
35
+ post_install_message:
36
+ rdoc_options: []
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ requirements: []
52
+ rubyforge_project:
53
+ rubygems_version: 1.8.6
54
+ signing_key:
55
+ specification_version: 3
56
+ summary: Ruby Wrapper for Heroku API.
57
+ test_files: []