sensu-translator 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/sensu/translator.rb +1 -1
- data/lib/sensu/translator/translations.rb +3 -2
- data/lib/sensu/translator/version.rb +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: 19c2ac0689a028d65b30cbccaf8a43f3aac44ac3
|
4
|
+
data.tar.gz: 235722afc5ea2d35173f7c5dcb22ec0e089c5f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85fb506e30baf92cf40eaa34724c888d407980b93318a92473cba555a808bdfdf7889a17c4738a06454e5dd42ecc5b8bb07a638c9657365e51aae2edeeb07f83
|
7
|
+
data.tar.gz: 3e6d7a155cef3eddfe813972b10f81c0656adbed7dd5de9bee4273a264154391254cd54159db36d8a7285fc7dda234396105f0813454e242843eab4969b7ad68
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,13 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.0.1] - 2018-12-18
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
- Now getting Sensu Go config file name from object metadata
|
13
|
+
- Check timeout no longer treated as custom
|
14
|
+
- Unable to translate log lines now include object inspection
|
15
|
+
|
9
16
|
## [1.0.0] - 2018-12-04
|
10
17
|
|
11
18
|
### Changed
|
data/lib/sensu/translator.rb
CHANGED
@@ -45,7 +45,7 @@ module Sensu
|
|
45
45
|
end
|
46
46
|
go_resources.each do |go_resource|
|
47
47
|
category = "#{go_resource[:type].downcase}s"
|
48
|
-
file_name = "#{go_resource[:
|
48
|
+
file_name = "#{go_resource[:metadata][:name]}.json"
|
49
49
|
output_file = File.join(output_dir, category, file_name)
|
50
50
|
content = Sensu::JSON.dump(go_resource, :pretty => true)
|
51
51
|
File.open(output_file, "w") do |file|
|
@@ -35,6 +35,7 @@ module Sensu
|
|
35
35
|
check[:handlers].uniq!
|
36
36
|
check[:proxy_entity_name] = object.delete(:source) if object[:source]
|
37
37
|
check[:stdin] = object.delete(:stdin) if object[:stdin]
|
38
|
+
check[:timeout] = object.delete(:timeout) if object[:timeout]
|
38
39
|
check[:ttl] = object.delete(:ttl) if object[:ttl]
|
39
40
|
check[:ttl_status] = object.delete(:ttl_status) if object[:ttl_status]
|
40
41
|
check[:low_flap_threshold] = object.delete(:low_flap_threshold) if object[:low_flap_threshold]
|
@@ -49,7 +50,7 @@ module Sensu
|
|
49
50
|
|
50
51
|
def translate_filter(object, namespace, name)
|
51
52
|
puts "Sensu 1.x filter translation is not yet supported"
|
52
|
-
puts "Unable to translate Sensu 1.x filter: #{name}
|
53
|
+
puts "Unable to translate Sensu 1.x filter: #{name} #{object}"
|
53
54
|
nil
|
54
55
|
end
|
55
56
|
|
@@ -63,7 +64,7 @@ module Sensu
|
|
63
64
|
|
64
65
|
def translate_extension(object, namespace, name)
|
65
66
|
puts "Sensu 1.x extension translation is not yet supported"
|
66
|
-
puts "Unable to translate Sensu 1.x extension: #{name} - #{
|
67
|
+
puts "Unable to translate Sensu 1.x extension: #{name} - #{object}"
|
67
68
|
nil
|
68
69
|
end
|
69
70
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-12-
|
12
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sensu-json
|