sensu-translator 1.0.1 → 1.1.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 +4 -0
- data/lib/sensu/translator/translations.rb +2 -1
- 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: 1fc36873235d11e5b2da787667a59b65aeae117a
|
4
|
+
data.tar.gz: e0e7a997b835c0384a514b895ce7959be98d7857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a694222f1c71e562835c4e20b1969b18b1cedd0ad4b4e4b52f5ed1118200205a711cd01bc54bb2fd7094bf28e06c34cd1db886047220c90a0338f406dd80f5f9
|
7
|
+
data.tar.gz: 93b022d922305edf0e3775c75c92f69a3a401a72d6e49bc72c211031024955bb256ed545ca6fb47908ddf80eef7601a90c6a4b475ae5bb61dd6e265a0e4e62fc
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.1.0] - 2020-02-19
|
10
|
+
### Added
|
11
|
+
- Translate check occurrences and refresh to fatigue_check annotations
|
12
|
+
|
9
13
|
## [1.0.1] - 2018-12-18
|
10
14
|
|
11
15
|
### Fixed
|
@@ -37,7 +37,6 @@ module Sensu
|
|
37
37
|
check[:stdin] = object.delete(:stdin) if object[:stdin]
|
38
38
|
check[:timeout] = object.delete(:timeout) if object[:timeout]
|
39
39
|
check[:ttl] = object.delete(:ttl) if object[:ttl]
|
40
|
-
check[:ttl_status] = object.delete(:ttl_status) if object[:ttl_status]
|
41
40
|
check[:low_flap_threshold] = object.delete(:low_flap_threshold) if object[:low_flap_threshold]
|
42
41
|
check[:high_flap_threshold] = object.delete(:high_flap_threshold) if object[:high_flap_threshold]
|
43
42
|
# TODO: subdue, hooks
|
@@ -45,6 +44,8 @@ module Sensu
|
|
45
44
|
unless object.empty?
|
46
45
|
annotations["sensu.io.json_attributes".to_sym] = Sensu::JSON.dump(object)
|
47
46
|
end
|
47
|
+
annotations["fatigue_check/occurrences"] = object[:occurrences].to_s if object[:occurrences]
|
48
|
+
annotations["fatigue_check/interval"] = object[:refresh].to_s if object[:refresh]
|
48
49
|
go_spec(:check, check, namespace, name, {}, annotations)
|
49
50
|
end
|
50
51
|
|
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.1.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:
|
12
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sensu-json
|