chef-handler-datadog-demo 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chef-handler-datadog-demo.gemspec +1 -1
- data/lib/chef/handler/datadog_demo.rb +2 -2
- data/lib/chef/handler/datadog_demo_chef_events.rb +2 -2
- data/lib/chef/handler/datadog_demo_chef_metrics.rb +1 -1
- data/lib/chef/handler/datadog_demo_chef_tags.rb +1 -1
- data/lib/chef_handler_datadog_demo.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 938d95b617ba588a51061209fdf206941e3a56b9
|
4
|
+
data.tar.gz: 5f6c92a8ad4bf8d95b252f572ea380a5c4a39e1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 829859f7e11eee4aab698018c0913128421b80c4c6c025bbd33d5b2406e531384796b4f05cd17adf66931c8d49ab253890c5570b24a43a84d0411ac220444c26
|
7
|
+
data.tar.gz: 32ad6c8df59e25ffde99aa89ed5591de9f17ea267f6286fd3cc392b193fb2c16f2f4a351d2930cb24cd00fd0fe956b59d2408994835c3da74681c9d39a6d5954
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.require_paths = ['lib']
|
15
15
|
gem.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
16
16
|
|
17
|
-
gem.add_dependency 'dogapi', '
|
17
|
+
gem.add_dependency 'dogapi-demo', '0.1.0'
|
18
18
|
|
19
19
|
gem.add_development_dependency 'appraisal', '~> 2.0.1'
|
20
20
|
gem.add_development_dependency 'bundler'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'chef/handler'
|
4
4
|
require 'chef/mash'
|
5
|
-
require 'dogapi'
|
5
|
+
require 'dogapi-demo'
|
6
6
|
require_relative 'datadog_demo_chef_metrics'
|
7
7
|
require_relative 'datadog_demo_chef_tags'
|
8
8
|
require_relative 'datadog_demo_chef_events'
|
@@ -19,7 +19,7 @@ class Chef
|
|
19
19
|
def initialize(config = {})
|
20
20
|
@config = Mash.new(config)
|
21
21
|
# If *any* api_key is not provided, this will fail immediately.
|
22
|
-
@dog =
|
22
|
+
@dog = DogapiDemo::Client.new(@config[:api_key], @config[:application_key])
|
23
23
|
end
|
24
24
|
|
25
25
|
def report
|
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'chef/handler'
|
4
4
|
require 'chef/mash'
|
5
|
-
require 'dogapi'
|
5
|
+
require 'dogapi-demo'
|
6
6
|
|
7
7
|
# helper class for sending events about chef runs
|
8
8
|
class DatadogChefEvents
|
@@ -70,7 +70,7 @@ class DatadogChefEvents
|
|
70
70
|
def emit_to_datadog
|
71
71
|
@event_body = ''
|
72
72
|
build_event_data
|
73
|
-
evt = @dog.emit_event(
|
73
|
+
evt = @dog.emit_event(DogapiDemo::Event.new(@event_body,
|
74
74
|
msg_title: @event_title,
|
75
75
|
event_type: 'config_management.run',
|
76
76
|
event_object: @hostname,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-handler-datadog-demo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Fiedler
|
@@ -10,22 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-07-
|
13
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name: dogapi
|
16
|
+
name: dogapi-demo
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 0.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: appraisal
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|