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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bad2d96627df89159f4508d6910a03240c34c02
4
- data.tar.gz: 6466ad81b5e8647b1c8c5203944a2065af2f704b
3
+ metadata.gz: 19c2ac0689a028d65b30cbccaf8a43f3aac44ac3
4
+ data.tar.gz: 235722afc5ea2d35173f7c5dcb22ec0e089c5f03
5
5
  SHA512:
6
- metadata.gz: e45df18b94ba115751030c21bd07135d7148bac54d5d37e1f0b78c81199fec537c08c1356708c3c79eeaed72c7ee0357561546b041c71b2d8f0054bfa079b946
7
- data.tar.gz: fd9ef4e4f7632e16acde98b9c34140a49df5bac1042727a98458d378ac4188b2c128b726a93ffc5642e62d3c088147ee085897e56a69e384c73c800c824dac99
6
+ metadata.gz: 85fb506e30baf92cf40eaa34724c888d407980b93318a92473cba555a808bdfdf7889a17c4738a06454e5dd42ecc5b8bb07a638c9657365e51aae2edeeb07f83
7
+ data.tar.gz: 3e6d7a155cef3eddfe813972b10f81c0656adbed7dd5de9bee4273a264154391254cd54159db36d8a7285fc7dda234396105f0813454e242843eab4969b7ad68
@@ -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
@@ -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[:spec][:name]}.json"
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} - #{filter}"
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} - #{extension}"
67
+ puts "Unable to translate Sensu 1.x extension: #{name} - #{object}"
67
68
  nil
68
69
  end
69
70
  end
@@ -1,5 +1,5 @@
1
1
  module Sensu
2
2
  module Translator
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  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.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-04 00:00:00.000000000 Z
12
+ date: 2018-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sensu-json