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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/sensu/translator/translations.rb +3 -3
- 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: 7bad2d96627df89159f4508d6910a03240c34c02
|
4
|
+
data.tar.gz: 6466ad81b5e8647b1c8c5203944a2065af2f704b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e45df18b94ba115751030c21bd07135d7148bac54d5d37e1f0b78c81199fec537c08c1356708c3c79eeaed72c7ee0357561546b041c71b2d8f0054bfa079b946
|
7
|
+
data.tar.gz: fd9ef4e4f7632e16acde98b9c34140a49df5bac1042727a98458d378ac4188b2c128b726a93ffc5642e62d3c088147ee085897e56a69e384c73c800c824dac99
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
43
|
+
annotations = {}
|
44
44
|
unless object.empty?
|
45
|
-
|
45
|
+
annotations["sensu.io.json_attributes".to_sym] = Sensu::JSON.dump(object)
|
46
46
|
end
|
47
|
-
go_spec(:check, check, namespace, name,
|
47
|
+
go_spec(:check, check, namespace, name, {}, annotations)
|
48
48
|
end
|
49
49
|
|
50
50
|
def translate_filter(object, namespace, name)
|
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
|
+
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-
|
12
|
+
date: 2018-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sensu-json
|