sensu-plugins-datadog 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcca558304f90b09d7f7f52ebef0513a00e3b086
4
- data.tar.gz: 14e269d768a97595b5b49106345dab3148da9f2c
3
+ metadata.gz: bde84640a04fc5fd74d64390a85c4595c2c57137
4
+ data.tar.gz: f49b461b09e759bb02d71eafaecfc08cb545981b
5
5
  SHA512:
6
- metadata.gz: 3947e1c05c0c7cb073f3e9076a11ed354a54b740c080dcd34d411025c367c07dbb90c7a51906cd3466d021938c04a1790626fc50c2caca62a0fbcfca72e58a01
7
- data.tar.gz: 48f5dc1f3f19ca7c7efddc3ec7cedbe70199a8e178046ea969fe440a8a87e31d68b15fbbef1fbf713f98f848edb1d499cfbd9f1dba5c3efec85ec81a4f576114
6
+ metadata.gz: aa13036124cf2e791d8a2e776b37cdff593709734289e0db04c76b1d56e0fa25f604c429fca4bed0658234ae23f1a2be97b93ab78618b6ee66557a91992869c8
7
+ data.tar.gz: fcf9f25713375f8981f3ed4a54087f417c1f6d7057702dea55e8b282a4edca8da30a46fae46f280597bbc32ccb6e511fb1bf8b2266c1278118a0e49b9ce581c4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,26 +1,14 @@
1
- #### 0.1.0-alpha.1
1
+ #Change Log
2
+ This project adheres to [Semantic Versioning](http://semver.org/).
2
3
 
3
- * baseline release identical to **sensu-community-plugins** repo
4
- * basic yard coverage
5
- * pinned dependencies
6
- * built against 1.9.3, 2.0, 2.1
7
- * cryptographically signed
4
+ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
8
5
 
9
- #### 0.0.1-alpha.2
6
+ ## Unreleased][unreleased]
10
7
 
11
- * bump Vagrant to Chef 6.6
12
- * update LICENSE and gemspec authors
13
- * update README
14
- * add required Ruby version *>= 1.9.3*
15
- * add test/spec_help.rb
8
+ ## [0.0.3] - 2015-06-02
16
9
 
17
- #### 0.0.1
10
+ ### Fixed
11
+ - added binstubs
18
12
 
19
- * Update CONTRIBUTING
20
- * Update README
21
-
22
- #### 0.0.2
23
-
24
- * pin all runtime and development dependencies
25
- * add Chef provisioning to Vagrantfile
26
- * add metadata to gem
13
+ ### Changed
14
+ - removed cruft from /lib
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 devsop@yieldbot.com
1
+ Copyright (c) 2015 Sensu-Plugins
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-datadog.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-datadog)
8
+ [ ![Codeship Status for sensu-plugins/sensu-plugins-datadog](https://codeship.com/projects/5e9844c0-b191-0132-e195-32bd639983ea/status?branch=master)](https://codeship.com/projects/69880)
8
9
 
9
10
  ## Functionality
10
11
  ```json
@@ -30,39 +31,6 @@ Send event data to datadog
30
31
 
31
32
  ## Installation
32
33
 
33
- Add the public key (if you haven’t already) as a trusted certificate
34
-
35
- ```
36
- gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
37
- gem install sensu-plugins-datadog -P MediumSecurity
38
- ```
39
-
40
- You can also download the key from /certs/ within each repository.
41
-
42
- #### Rubygems
43
-
44
- `gem install sensu-plugins-datadog`
45
-
46
- #### Bundler
47
-
48
- Add *sensu-plugins-datadog* to your Gemfile and run `bundle install` or `bundle update`
49
-
50
- #### Chef
51
-
52
- Using the Sensu **sensu_gem** LWRP
53
- ```
54
- sensu_gem 'sensu-plugins-datadog' do
55
- options('--prerelease')
56
- version '0.0.1.alpha.1'
57
- end
58
- ```
59
-
60
- Using the Chef **gem_package** resource
61
- ```
62
- gem_package 'sensu-plugins-datadog' do
63
- options('--prerelease')
64
- version '0.0.1.alpha.1'
65
- end
66
- ```
34
+ [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
67
35
 
68
36
  ## Notes
@@ -69,7 +69,7 @@ class DatadogNotif < Sensu::Handler
69
69
  end
70
70
 
71
71
  # submit the event to datadog
72
- def datadog
72
+ def datadog # rubocop:disable all
73
73
  description = @event['notification'] || [@event['client']['name'], @event['check']['name'], @event['check']['output']].join(' ')
74
74
  action = acquire_action
75
75
  priority = acquire_priority
@@ -90,8 +90,8 @@ class DatadogNotif < Sensu::Handler
90
90
  priority: priority,
91
91
  source_type_name: 'nagios', # make events appear as nagios alerts so the weekly nagios report can be produced
92
92
  aggregation_key: @event['check']['name']
93
- ), host: @event['client']['name']
94
- )
93
+ ), host: @event['client']['name']
94
+ )
95
95
 
96
96
  begin
97
97
  if response[0] == '202'
@@ -1,7 +1 @@
1
- #
2
- # Set gem version
3
- #
4
- module SensuPluginsDatadog
5
- # Gem version
6
- VERSION = '0.0.2'
7
- end
1
+ require 'sensu-plugins-datadog/version'
@@ -0,0 +1,9 @@
1
+ module SensuPluginsDatadog
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 0
5
+ PATCH = 3
6
+
7
+ VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
+ end
9
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Yieldbot, Inc. and contributors
7
+ - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-04-01 00:00:00.000000000 Z
33
+ date: 2015-06-03 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: datadog
@@ -66,28 +66,28 @@ dependencies:
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.4.6
69
+ version: '0.4'
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 0.4.6
76
+ version: '0.4'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: rubocop
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 0.17.0
83
+ version: '0.30'
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: 0.17.0
90
+ version: '0.30'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec
93
93
  requirement: !ruby/object:Gem::Requirement
@@ -134,61 +134,63 @@ dependencies:
134
134
  name: github-markup
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - '='
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: 1.3.3
139
+ version: '1.3'
140
140
  type: :development
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - '='
144
+ - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 1.3.3
146
+ version: '1.3'
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: redcarpet
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 3.2.2
153
+ version: '3.2'
154
154
  type: :development
155
155
  prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - "~>"
159
159
  - !ruby/object:Gem::Version
160
- version: 3.2.2
160
+ version: '3.2'
161
161
  - !ruby/object:Gem::Dependency
162
162
  name: yard
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: 0.8.7.6
167
+ version: '0.8'
168
168
  type: :development
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - "~>"
173
173
  - !ruby/object:Gem::Version
174
- version: 0.8.7.6
174
+ version: '0.8'
175
175
  - !ruby/object:Gem::Dependency
176
176
  name: pry
177
177
  requirement: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - "~>"
180
180
  - !ruby/object:Gem::Version
181
- version: 0.10.1
181
+ version: '0.10'
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - "~>"
187
187
  - !ruby/object:Gem::Version
188
- version: 0.10.1
189
- description: ''
188
+ version: '0.10'
189
+ description: Sensu plugins for datadog
190
190
  email: "<sensu-users@googlegroups.com>"
191
- executables: []
191
+ executables:
192
+ - datadog-notification.rb
193
+ - datadog-metrics.rb
192
194
  extensions: []
193
195
  extra_rdoc_files: []
194
196
  files:
@@ -198,14 +200,18 @@ files:
198
200
  - bin/datadog-metrics.rb
199
201
  - bin/datadog-notification.rb
200
202
  - lib/sensu-plugins-datadog.rb
203
+ - lib/sensu-plugins-datadog/version.rb
201
204
  homepage: https://github.com/sensu-plugins/sensu-plugins-datadog
202
205
  licenses:
203
206
  - MIT
204
207
  metadata:
205
- maintainer: ''
208
+ maintainer: sensu-plugin
206
209
  development_status: unmaintained
207
- production_status: unstable - testing reccomended
208
- post_install_message:
210
+ production_status: unstable - testing recommended
211
+ release_draft: 'false'
212
+ release_prerelease: 'false'
213
+ post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
214
+ in /etc/default/sensu
209
215
  rdoc_options: []
210
216
  require_paths:
211
217
  - lib
@@ -221,9 +227,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
227
  version: '0'
222
228
  requirements: []
223
229
  rubyforge_project:
224
- rubygems_version: 2.2.2
230
+ rubygems_version: 2.4.6
225
231
  signing_key:
226
232
  specification_version: 4
227
- summary: ''
233
+ summary: Sensu plugins for datadog
228
234
  test_files: []
229
- has_rdoc:
metadata.gz.sig CHANGED
Binary file