sensu-translator 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19c2ac0689a028d65b30cbccaf8a43f3aac44ac3
4
- data.tar.gz: 235722afc5ea2d35173f7c5dcb22ec0e089c5f03
3
+ metadata.gz: 1fc36873235d11e5b2da787667a59b65aeae117a
4
+ data.tar.gz: e0e7a997b835c0384a514b895ce7959be98d7857
5
5
  SHA512:
6
- metadata.gz: 85fb506e30baf92cf40eaa34724c888d407980b93318a92473cba555a808bdfdf7889a17c4738a06454e5dd42ecc5b8bb07a638c9657365e51aae2edeeb07f83
7
- data.tar.gz: 3e6d7a155cef3eddfe813972b10f81c0656adbed7dd5de9bee4273a264154391254cd54159db36d8a7285fc7dda234396105f0813454e242843eab4969b7ad68
6
+ metadata.gz: a694222f1c71e562835c4e20b1969b18b1cedd0ad4b4e4b52f5ed1118200205a711cd01bc54bb2fd7094bf28e06c34cd1db886047220c90a0338f406dd80f5f9
7
+ data.tar.gz: 93b022d922305edf0e3775c75c92f69a3a401a72d6e49bc72c211031024955bb256ed545ca6fb47908ddf80eef7601a90c6a4b475ae5bb61dd6e265a0e4e62fc
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Sensu
2
2
  module Translator
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.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: 1.0.1
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: 2018-12-19 00:00:00.000000000 Z
12
+ date: 2020-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sensu-json