sensu-plugins-victorops 0.0.1.alpha.2 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +12 -9
- data/LICENSE +1 -1
- data/README.md +3 -34
- data/bin/handler-victorops.rb +0 -2
- data/lib/sensu-plugins-victorops/version.rb +28 -0
- data/lib/sensu-plugins-victorops.rb +11 -3
- data.tar.gz.sig +0 -0
- metadata +15 -12
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 405f2399b32e18e83287b591fe8d4a16b6eb83e9
|
4
|
+
data.tar.gz: 13e486f58a58c605fbaf95d4fffd513bf1184a5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1695c7d12f271cc965bcf2e118ad7645b0ee529e570e08ba1e34c12f9f1d4266aac958c8795e5cfd0632335c95d84eaf8075eb8fbdeea6633d0e70cdbf7ad263
|
7
|
+
data.tar.gz: f141f2169fd9343ac5a4e8df34c90f70452f9af4d3b6b2f66d5a2aec937850bc08b1fa8c3f74662f6d51d7cecb825874e0c609b9bf5ee0627861bddd4fd3a7f1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
#Change Log
|
2
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
|
+
|
4
|
+
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
|
+
|
6
|
+
## Unreleased][unreleased]
|
7
|
+
|
8
|
+
## 0.0.1 - 2015-05-21
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- initial release
|
12
|
+
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -5,11 +5,12 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops)
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-victorops.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-victorops)
|
8
|
+
[ ![Codeship Status for sensu-plugins/sensu-plugins-victorops](https://codeship.com/projects/3639bc20-e210-0132-d166-3642858bbef8/status?branch=master)](https://codeship.com/projects/81382)
|
8
9
|
|
9
10
|
## Functionality
|
10
11
|
|
11
12
|
## Files
|
12
|
-
* bin/handler-victorops
|
13
|
+
* bin/handler-victorops.rb
|
13
14
|
|
14
15
|
## Usage
|
15
16
|
|
@@ -23,39 +24,7 @@
|
|
23
24
|
```
|
24
25
|
## Installation
|
25
26
|
|
26
|
-
|
27
|
+
[Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
|
27
28
|
|
28
|
-
```
|
29
|
-
gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
|
30
|
-
gem install sensu-plugins-victorops -P MediumSecurity
|
31
|
-
```
|
32
|
-
|
33
|
-
You can also download the key from /certs/ within each repository.
|
34
|
-
|
35
|
-
#### Rubygems
|
36
|
-
|
37
|
-
`gem install sensu-plugins-victorops`
|
38
|
-
|
39
|
-
#### Bundler
|
40
|
-
|
41
|
-
Add *sensu-plugins-disk-checks* to your Gemfile and run `bundle install` or `bundle update`
|
42
|
-
|
43
|
-
#### Chef
|
44
|
-
|
45
|
-
Using the Sensu **sensu_gem** LWRP
|
46
|
-
```
|
47
|
-
sensu_gem 'sensu-plugins-victorops' do
|
48
|
-
options('--prerelease')
|
49
|
-
version '0.0.1'
|
50
|
-
end
|
51
|
-
```
|
52
|
-
|
53
|
-
Using the Chef **gem_package** resource
|
54
|
-
```
|
55
|
-
gem_package 'sensu-plugins-victorops' do
|
56
|
-
options('--prerelease')
|
57
|
-
version '0.0.1'
|
58
|
-
end
|
59
|
-
```
|
60
29
|
|
61
30
|
## Notes
|
data/bin/handler-victorops.rb
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
5
5
|
# for details.
|
6
6
|
|
7
|
-
require 'rubygems' if RUBY_VERSION < '1.9.0'
|
8
7
|
require 'sensu-handler'
|
9
8
|
require 'uri'
|
10
9
|
require 'net/http'
|
@@ -15,7 +14,6 @@ require 'json'
|
|
15
14
|
# VictorOps Handler
|
16
15
|
#
|
17
16
|
class VictorOps < Sensu::Handler
|
18
|
-
# rubocop:disable Metrics/AbcSize
|
19
17
|
def handle
|
20
18
|
config = settings['victorops']
|
21
19
|
incident_key = @event['client']['name'] + '/' + @event['check']['name']
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
# encoding: utf-8
|
4
|
+
module SensuPluginsVictorops
|
5
|
+
# This defines the version of the gem
|
6
|
+
module Version
|
7
|
+
MAJOR = 0
|
8
|
+
MINOR = 0
|
9
|
+
PATCH = 1
|
10
|
+
|
11
|
+
VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
|
12
|
+
|
13
|
+
NAME = 'sensu-plugins-victorops'
|
14
|
+
BANNER = "#{NAME} v%s"
|
15
|
+
|
16
|
+
module_function
|
17
|
+
|
18
|
+
def version
|
19
|
+
format(BANNER, VER_STRING)
|
20
|
+
end
|
21
|
+
|
22
|
+
def json_version
|
23
|
+
{
|
24
|
+
'version' => VER_STRING
|
25
|
+
}.to_json
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -1,7 +1,15 @@
|
|
1
|
+
|
2
|
+
require 'sensu-plugins-victorops/version'
|
3
|
+
|
4
|
+
# Load the defaults
|
5
|
+
|
1
6
|
#
|
2
|
-
#
|
7
|
+
# Default class
|
3
8
|
#
|
4
9
|
module SensuPluginsVictorops
|
5
|
-
|
6
|
-
|
10
|
+
class << self
|
11
|
+
end
|
12
|
+
|
13
|
+
class << self
|
14
|
+
end
|
7
15
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-victorops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
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-
|
33
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
@@ -78,16 +78,16 @@ dependencies:
|
|
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.
|
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.
|
90
|
+
version: '0.30'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -197,6 +197,7 @@ files:
|
|
197
197
|
- README.md
|
198
198
|
- bin/handler-victorops.rb
|
199
199
|
- lib/sensu-plugins-victorops.rb
|
200
|
+
- lib/sensu-plugins-victorops/version.rb
|
200
201
|
homepage: https://github.com/sensu-plugins/sensu-plugins-victorops
|
201
202
|
licenses:
|
202
203
|
- MIT
|
@@ -204,7 +205,10 @@ metadata:
|
|
204
205
|
maintainer: ''
|
205
206
|
development_status: unmaintained
|
206
207
|
production_status: unstable - testing reccomended
|
207
|
-
|
208
|
+
release_draft: 'false'
|
209
|
+
release_prerelease: 'false'
|
210
|
+
post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
|
211
|
+
in /etc/default/sensu
|
208
212
|
rdoc_options: []
|
209
213
|
require_paths:
|
210
214
|
- lib
|
@@ -215,14 +219,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
219
|
version: 1.9.3
|
216
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
221
|
requirements:
|
218
|
-
- - "
|
222
|
+
- - ">="
|
219
223
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
224
|
+
version: '0'
|
221
225
|
requirements: []
|
222
226
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.
|
227
|
+
rubygems_version: 2.4.6
|
224
228
|
signing_key:
|
225
229
|
specification_version: 4
|
226
230
|
summary: Sensu plugins for Victorops alerting service
|
227
231
|
test_files: []
|
228
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
O⁶ɹ�Ġ�R�O�).��!�B��t�����/�v�X@:�r��D~<�]�m�>Kj����tiϥ�نъ?¦��
|