opsview_rest 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opsview_rest/contact.rb +3 -3
- data/lib/opsview_rest/notificationmethod.rb +1 -1
- data/lib/opsview_rest/timeperiod.rb +4 -4
- data/lib/opsview_rest.rb +2 -2
- data/opsview_rest.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5f07bb5d9579733ba504371dcdde50cd397c15d
|
4
|
+
data.tar.gz: 15aaae864adbc403135c0af3cf6f3d88b794ae7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e4191a36adb6bc5c5e260a7d458a3eb020384f231bde0a5cdda795ce59a2866e9a97a64ba4b387102e814553e92fcae1edae8cef3d8b6a43b76c6ec1c28439
|
7
|
+
data.tar.gz: 1f599e2413800c55569bdc3f9b9343e22e3bb87526fc0eb7bad808a7845f64b3469410b392a519ceb6c975d1563c201b170aab1c6c42111c36227d6d801e8341
|
data/lib/opsview_rest/contact.rb
CHANGED
@@ -59,9 +59,9 @@ class OpsviewRest
|
|
59
59
|
|
60
60
|
@options[:all_servicegroups] = if @options[:all_servicegroups] then 1 else 0 end
|
61
61
|
@options[:all_hostgroups] = if @options[:all_hostgroups] then 1 else 0 end
|
62
|
-
@options[:servicegroups] = @options[:servicegroups].map { |x| { "name" => x } }
|
63
|
-
@options[:keywords] = @options[:keywords].map { |x| { "name" => x } }
|
64
|
-
@options[:hostgroups] = @options[:hostgroups].map { |x| { "name" => x } }
|
62
|
+
@options[:servicegroups] = @options[:servicegroups].map { |x| { "name" => x } } unless @options[:servicegroups].nil?
|
63
|
+
@options[:keywords] = @options[:keywords].map { |x| { "name" => x } } unless @options[:keywords].nil?
|
64
|
+
@options[:hostgroups] = @options[:hostgroups].map { |x| { "name" => x } } unless @options[:hostgroups].nil?
|
65
65
|
@options[:role] = { "name" => @options[:role] }
|
66
66
|
|
67
67
|
save(@options[:replace]) if @options[:save]
|
@@ -29,10 +29,10 @@ class OpsviewRest
|
|
29
29
|
@opsview = opsview
|
30
30
|
@resource_type = @options[:type]
|
31
31
|
|
32
|
-
@
|
33
|
-
@
|
34
|
-
@
|
35
|
-
@
|
32
|
+
@options[:servicecheck_notification_periods] = @options[:servicecheck_notification_periods].map { |x| { "name" => x } } unless @options[:servicecheck_notification_periods].nil?
|
33
|
+
@options[:servicecheck_check_periods] = @options[:servicecheck_check_periods].map { |x| { "name" => x } } unless @options[:servicecheck_check_periods].nil?
|
34
|
+
@options[:host_check_periods] = @options[:host_check_periods].map { |x| { "name" => x } } unless @options[:host_check_periods].nil?
|
35
|
+
@options[:host_notification_periods] = @options[:host_notification_periods].map { |x| { "name" => x } } unless @options[:host_notification_periods].nil?
|
36
36
|
|
37
37
|
save(@options[:replace]) if @options[:save]
|
38
38
|
end
|
data/lib/opsview_rest.rb
CHANGED
@@ -57,8 +57,8 @@ class OpsviewRest
|
|
57
57
|
when :monitoring_server
|
58
58
|
require 'opsview_rest/monitoring_server'
|
59
59
|
OpsviewRest::MonitoringServer.new(self, options)
|
60
|
-
when :
|
61
|
-
require 'opsview_rest/
|
60
|
+
when :notificationmethod
|
61
|
+
require 'opsview_rest/notificationmethod'
|
62
62
|
OpsviewRest::NotificationMethod.new(self, options)
|
63
63
|
when :role
|
64
64
|
require 'opsview_rest/role'
|
data/opsview_rest.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opsview_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Paredes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|