new_relic-rest_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.sample +1 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +54 -0
- data/Rakefile +21 -0
- data/TODO.md +12 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/new_relic/rest_api.rb +23 -0
- data/lib/new_relic/rest_api/application.rb +29 -0
- data/lib/new_relic/rest_api/application_metric_data.rb +16 -0
- data/lib/new_relic/rest_api/application_metric_names.rb +16 -0
- data/lib/new_relic/rest_api/config.rb +42 -0
- data/lib/new_relic/rest_api/connection.rb +48 -0
- data/lib/new_relic/rest_api/resource.rb +44 -0
- data/lib/new_relic/rest_api/response_collection.rb +19 -0
- data/lib/new_relic/rest_api/version.rb +5 -0
- data/new_relic-rest_api.gemspec +36 -0
- metadata +193 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9e08f4dc0227235037b84cb045d0f8a6a479349d
|
4
|
+
data.tar.gz: 2e419422ad1a71660bc19024809ed4d225ba8f12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6860c090abc3cafd930e7e16b6e1910442a05fc727e77a695de9b7e4a3fcf8a7c6e5f414bc08907be25787fc465178346abcfb0454293feab3f6f6ead71482da
|
7
|
+
data.tar.gz: 68e6a98210d2d55a8f43abdb47a199c52302e51bc608bafa75524459d7dab6a13b8ad60752db3fde2a634f78ebdf660ad9a303c17cebdb03af300cae59efa9ef
|
data/.env.sample
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
NEW_RELIC_REST_API_KEY=''
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at tomas_stefano@successoft.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Tomas D'Stefano
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# NewRelic::RestApi
|
2
|
+
|
3
|
+
New Relic client for the v2 Rest API:
|
4
|
+
|
5
|
+
https://docs.newrelic.com/docs/apis/rest-api-v2.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'new_relic-rest_api', require: 'new_relic/rest_api'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install new_relic-rest_api
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
You need to setup your new relic api key:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'new_relic/rest_api'
|
29
|
+
|
30
|
+
NewRelic::RestApi.config do |config|
|
31
|
+
config.key = '<your-api-key>'
|
32
|
+
end
|
33
|
+
```
|
34
|
+
There other options you can setup like:
|
35
|
+
|
36
|
+
timeout, open_timeout, retries, ssl_options.
|
37
|
+
|
38
|
+
Then you can play with the application resource:
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
applications = NewRelic::RestApi::Application.all
|
42
|
+
```
|
43
|
+
|
44
|
+
In order to get the metric names for each application:
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
applications.map(&:metric_names)
|
48
|
+
```
|
49
|
+
|
50
|
+
In order to get the metrics data for each application:
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
applications.map { |app| app.metric_data(names: ['<some-metric-name-from-above>']) }
|
54
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
require 'dotenv'
|
4
|
+
Dotenv.load
|
5
|
+
require 'new_relic/rest_api'
|
6
|
+
|
7
|
+
RSpec::Core::RakeTask.new(:spec)
|
8
|
+
|
9
|
+
task :default => :spec
|
10
|
+
|
11
|
+
desc 'Runs an IRB session'
|
12
|
+
task :console do
|
13
|
+
NewRelic::RestApi.config do |config|
|
14
|
+
config.key = ENV['NEW_RELIC_REST_API_KEY']
|
15
|
+
config.ssl_options = { verify: false }
|
16
|
+
end
|
17
|
+
|
18
|
+
ARGV.clear
|
19
|
+
require 'irb'
|
20
|
+
IRB.start
|
21
|
+
end
|
data/TODO.md
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "new_relic/rest_api"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'virtus'
|
2
|
+
require 'new_relic/rest_api/version'
|
3
|
+
require 'new_relic/rest_api/config'
|
4
|
+
require 'new_relic/rest_api/connection'
|
5
|
+
require 'new_relic/rest_api/resource'
|
6
|
+
require 'new_relic/rest_api/response_collection'
|
7
|
+
require 'new_relic/rest_api/application'
|
8
|
+
|
9
|
+
module NewRelic
|
10
|
+
module RestApi
|
11
|
+
def self.config
|
12
|
+
@config ||= NewRelic::RestApi::Config.new
|
13
|
+
|
14
|
+
yield(@config) if block_given?
|
15
|
+
|
16
|
+
@config
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.connection
|
20
|
+
@connection ||= NewRelic::RestApi::Connection.new
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'new_relic/rest_api/application_metric_names'
|
2
|
+
require 'new_relic/rest_api/application_metric_data'
|
3
|
+
|
4
|
+
module NewRelic
|
5
|
+
module RestApi
|
6
|
+
class Application < NewRelic::RestApi::Resource
|
7
|
+
attribute :id, Integer
|
8
|
+
attribute :name, String
|
9
|
+
attribute :language, String
|
10
|
+
attribute :health_status, String
|
11
|
+
attribute :reporting, Boolean
|
12
|
+
attribute :last_reported_at, DateTime
|
13
|
+
attribute :application_summary, Hash
|
14
|
+
attribute :settings, Hash
|
15
|
+
attribute :links, Array
|
16
|
+
|
17
|
+
def metric_names
|
18
|
+
ApplicationMetricNames.all(application_id: id)
|
19
|
+
end
|
20
|
+
|
21
|
+
def metric_data(names: [])
|
22
|
+
ApplicationMetricData.all(
|
23
|
+
application_id: id,
|
24
|
+
params: { names: names }
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module NewRelic
|
2
|
+
module RestApi
|
3
|
+
class ApplicationMetricData < NewRelic::RestApi::Resource
|
4
|
+
attribute :name, Array
|
5
|
+
attribute :timeslices, Array
|
6
|
+
|
7
|
+
def self.requested_path(options = {})
|
8
|
+
"applications/#{options.fetch(:application_id)}/metrics/data"
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.resource_name
|
12
|
+
['metric_data', 'metrics']
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module NewRelic
|
2
|
+
module RestApi
|
3
|
+
class ApplicationMetricNames < NewRelic::RestApi::Resource
|
4
|
+
attribute :name
|
5
|
+
attribute :values, Array
|
6
|
+
|
7
|
+
def self.requested_path(options = {})
|
8
|
+
"applications/#{options.fetch(:application_id)}/#{resource_name}"
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.resource_name
|
12
|
+
'metrics'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module NewRelic
|
2
|
+
module RestApi
|
3
|
+
class Config
|
4
|
+
attr_accessor :host,
|
5
|
+
:api_version,
|
6
|
+
:key,
|
7
|
+
:retries,
|
8
|
+
:timeout,
|
9
|
+
:open_timeout
|
10
|
+
|
11
|
+
## Pass the SSL certificates location
|
12
|
+
# For more information read:
|
13
|
+
# https://github.com/lostisland/faraday/wiki/Setting-up-SSL-certificates
|
14
|
+
#
|
15
|
+
attr_accessor :ssl_options
|
16
|
+
|
17
|
+
def host
|
18
|
+
@host ||= 'https://api.newrelic.com'
|
19
|
+
end
|
20
|
+
|
21
|
+
def api_version
|
22
|
+
@api_version ||= 'v2'
|
23
|
+
end
|
24
|
+
|
25
|
+
def timeout
|
26
|
+
@timeout ||= 10
|
27
|
+
end
|
28
|
+
|
29
|
+
def open_timeout
|
30
|
+
@open_timeout ||= 10
|
31
|
+
end
|
32
|
+
|
33
|
+
def retries
|
34
|
+
@retries ||= 0
|
35
|
+
end
|
36
|
+
|
37
|
+
def ssl_options
|
38
|
+
@ssl_options ||= {}
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
require 'faraday/conductivity'
|
4
|
+
require 'delegate'
|
5
|
+
|
6
|
+
module NewRelic
|
7
|
+
module RestApi
|
8
|
+
class Connection < SimpleDelegator
|
9
|
+
def initialize
|
10
|
+
require 'logger'
|
11
|
+
@raw_connection = Faraday.new(http_options) do |faraday|
|
12
|
+
faraday.request :json
|
13
|
+
faraday.request :retry, max: config.retries
|
14
|
+
faraday.request :user_agent,
|
15
|
+
app: 'NewRelic::RestApi gem',
|
16
|
+
version: NewRelic::RestApi::VERSION
|
17
|
+
#faraday.response :logger, ::Logger.new(STDOUT), bodies: true
|
18
|
+
faraday.response :json
|
19
|
+
faraday.response :raise_error
|
20
|
+
faraday.adapter Faraday.default_adapter
|
21
|
+
end
|
22
|
+
|
23
|
+
super(@raw_connection)
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def http_options
|
29
|
+
options = {
|
30
|
+
url: config.host,
|
31
|
+
request: {
|
32
|
+
timeout: config.timeout,
|
33
|
+
open_timeout: config.open_timeout
|
34
|
+
},
|
35
|
+
headers: {
|
36
|
+
'X-Api-Key' => config.key
|
37
|
+
}
|
38
|
+
}
|
39
|
+
options[:ssl] = config.ssl_options unless config.ssl_options.empty?
|
40
|
+
options
|
41
|
+
end
|
42
|
+
|
43
|
+
def config
|
44
|
+
NewRelic::RestApi.config
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'active_support/inflector'
|
2
|
+
|
3
|
+
module NewRelic
|
4
|
+
module RestApi
|
5
|
+
class Resource
|
6
|
+
include Virtus.model
|
7
|
+
|
8
|
+
def self.all(options = {})
|
9
|
+
response = connection.get(path(options), options.delete(:params))
|
10
|
+
body = response.body.dig(*resource_name)
|
11
|
+
|
12
|
+
ResponseCollection.new(response, body: body) do |record|
|
13
|
+
new(record)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.find(id)
|
18
|
+
response = connection.get(path(id: id))
|
19
|
+
body = response.body[resource_name.singularize]
|
20
|
+
|
21
|
+
new(body)
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.path(options = {})
|
25
|
+
[
|
26
|
+
NewRelic::RestApi.config.api_version,
|
27
|
+
requested_path(options)
|
28
|
+
].compact.join('/').concat('.json')
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.requested_path(options = {})
|
32
|
+
[resource_name, options[:id]].compact.join('/')
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.resource_name
|
36
|
+
name.demodulize.underscore.dasherize.pluralize
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.connection
|
40
|
+
NewRelic::RestApi.connection
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module NewRelic
|
2
|
+
module RestApi
|
3
|
+
class ResponseCollection < Array
|
4
|
+
attr_reader :response, :body, :collection
|
5
|
+
|
6
|
+
def initialize(response, options, &block)
|
7
|
+
@response = response
|
8
|
+
@body = options.fetch(:body)
|
9
|
+
@collection = @body.map(&block)
|
10
|
+
|
11
|
+
super(@collection)
|
12
|
+
end
|
13
|
+
|
14
|
+
def inspect
|
15
|
+
"#<ResponseCollection:#{object_id} #{collection}>"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'new_relic/rest_api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "new_relic-rest_api"
|
8
|
+
spec.version = NewRelic::RestApi::VERSION
|
9
|
+
spec.authors = ["Tomas D'Stefano"]
|
10
|
+
spec.email = ["tomas_stefano@successoft.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{
|
13
|
+
New Relic client v2 Rest API.
|
14
|
+
}
|
15
|
+
spec.description = %q{
|
16
|
+
New Relic client v2 Rest API: https://docs.newrelic.com/docs/apis/rest-api-v2.
|
17
|
+
}
|
18
|
+
spec.homepage = 'https://github.com/tomas-stefano/new_relic-api_client'
|
19
|
+
spec.license = "MIT"
|
20
|
+
|
21
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_dependency 'faraday', '~> 0.12'
|
27
|
+
spec.add_dependency 'faraday_middleware', '~> 0.11'
|
28
|
+
spec.add_dependency 'faraday-conductivity', '~> 0.3'
|
29
|
+
spec.add_dependency 'activesupport', '>= 4'
|
30
|
+
spec.add_dependency 'virtus', '~> 1.0'
|
31
|
+
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
35
|
+
spec.add_development_dependency 'dotenv'
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: new_relic-rest_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tomas D'Stefano
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.12'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.11'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday-conductivity
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.3'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activesupport
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: virtus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.11'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.11'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: dotenv
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: "\n New Relic client v2 Rest API: https://docs.newrelic.com/docs/apis/rest-api-v2.\n
|
140
|
+
\ "
|
141
|
+
email:
|
142
|
+
- tomas_stefano@successoft.com
|
143
|
+
executables: []
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".env.sample"
|
148
|
+
- ".gitignore"
|
149
|
+
- ".rspec"
|
150
|
+
- ".travis.yml"
|
151
|
+
- CODE_OF_CONDUCT.md
|
152
|
+
- Gemfile
|
153
|
+
- LICENSE.txt
|
154
|
+
- README.md
|
155
|
+
- Rakefile
|
156
|
+
- TODO.md
|
157
|
+
- bin/console
|
158
|
+
- bin/setup
|
159
|
+
- lib/new_relic/rest_api.rb
|
160
|
+
- lib/new_relic/rest_api/application.rb
|
161
|
+
- lib/new_relic/rest_api/application_metric_data.rb
|
162
|
+
- lib/new_relic/rest_api/application_metric_names.rb
|
163
|
+
- lib/new_relic/rest_api/config.rb
|
164
|
+
- lib/new_relic/rest_api/connection.rb
|
165
|
+
- lib/new_relic/rest_api/resource.rb
|
166
|
+
- lib/new_relic/rest_api/response_collection.rb
|
167
|
+
- lib/new_relic/rest_api/version.rb
|
168
|
+
- new_relic-rest_api.gemspec
|
169
|
+
homepage: https://github.com/tomas-stefano/new_relic-api_client
|
170
|
+
licenses:
|
171
|
+
- MIT
|
172
|
+
metadata: {}
|
173
|
+
post_install_message:
|
174
|
+
rdoc_options: []
|
175
|
+
require_paths:
|
176
|
+
- lib
|
177
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
requirements: []
|
188
|
+
rubyforge_project:
|
189
|
+
rubygems_version: 2.6.12
|
190
|
+
signing_key:
|
191
|
+
specification_version: 4
|
192
|
+
summary: New Relic client v2 Rest API.
|
193
|
+
test_files: []
|