sensu-translator 0.4.0 → 1.0.0

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: 97657180e19ead6b7b0a874db896d6a8f46270c9
4
- data.tar.gz: 7fdb41b462dfe2890c19355f0bf8cad69edf7035
3
+ metadata.gz: 7bad2d96627df89159f4508d6910a03240c34c02
4
+ data.tar.gz: 6466ad81b5e8647b1c8c5203944a2065af2f704b
5
5
  SHA512:
6
- metadata.gz: 954321b5d117b053b9f5a63c632e19eda222fdd4d99d523361fc112c45207ef62571b3c2169e91f5b9b825ca71d6cf1daf5b4a5d4364c8f248dc936ff3de5154
7
- data.tar.gz: f7abd9874b90d062e3d4f29a1435812ecd3ee59aad87d2d081d66ecffb4328c883cd116a2494fb5ba41321f25556898cb0445786031b182fd01353c4a59e5043
6
+ metadata.gz: e45df18b94ba115751030c21bd07135d7148bac54d5d37e1f0b78c81199fec537c08c1356708c3c79eeaed72c7ee0357561546b041c71b2d8f0054bfa079b946
7
+ data.tar.gz: fd9ef4e4f7632e16acde98b9c34140a49df5bac1042727a98458d378ac4188b2c128b726a93ffc5642e62d3c088147ee085897e56a69e384c73c800c824dac99
@@ -6,6 +6,15 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.0] - 2018-12-04
10
+
11
+ ### Changed
12
+ - Now using an annotation for json_attributes instead of a label
13
+ - Namespaced the json_attributes annotation, sensu.io.*
14
+
15
+ ### Added
16
+ - Custom attributes added to Go label "json_attributes"
17
+
9
18
  ## [0.4.0] - 2018-11-29
10
19
 
11
20
  ### Changed
@@ -40,11 +40,11 @@ module Sensu
40
40
  check[:low_flap_threshold] = object.delete(:low_flap_threshold) if object[:low_flap_threshold]
41
41
  check[:high_flap_threshold] = object.delete(:high_flap_threshold) if object[:high_flap_threshold]
42
42
  # TODO: subdue, hooks
43
- labels = {}
43
+ annotations = {}
44
44
  unless object.empty?
45
- labels[:json_attributes] = Sensu::JSON.dump(object)
45
+ annotations["sensu.io.json_attributes".to_sym] = Sensu::JSON.dump(object)
46
46
  end
47
- go_spec(:check, check, namespace, name, labels)
47
+ go_spec(:check, check, namespace, name, {}, annotations)
48
48
  end
49
49
 
50
50
  def translate_filter(object, namespace, name)
@@ -1,5 +1,5 @@
1
1
  module Sensu
2
2
  module Translator
3
- VERSION = "0.4.0"
3
+ VERSION = "1.0.0"
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: 0.4.0
4
+ version: 1.0.0
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-11-29 00:00:00.000000000 Z
12
+ date: 2018-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sensu-json