sensu-extensions-occurrences 1.1.0 → 1.2.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: addf7ce37db1c6d2e09fbe1161f43cf7a1293d7c
4
- data.tar.gz: c5399fe89faf53b136500a6761e72fc4082e0314
3
+ metadata.gz: 0f114a06cc364bcc6b9bb5b382625459e9ec2186
4
+ data.tar.gz: 1adf91374f2751e1878175231508333cfdbc9b18
5
5
  SHA512:
6
- metadata.gz: 91555d8459b42af3a09e84b5f8a7ec467132567084df53e234797664257d2448a753725825fb17630d2e2f29506c337a87ad89ac5eabe2a655314553b29fd833
7
- data.tar.gz: fbe5188326733067c6057cfb61137b8aa0af5b2edaee5b9485eb5dbeef4a97b30d3bf0aa7ca7335752dcb35304d064fd774fd6083d97bde66cb93c62d097cc41
6
+ metadata.gz: ac29e26a6d6d82871d29be6bbf2c845574c0cf7feb7b7bc8716c54c0b8ee4315af3f3f0ec55b73b79031866ab6adb42e1632b822acb3730e3bd9cac3260e96a0
7
+ data.tar.gz: b7d010e1391622d7c7ae7c150b1b27946ad9f07740899d5554d39ba01ae43bfc5d95ec7698342928e9801c94bd06de39b4e1cbe21cd673e69ca2d9d8c5986e7b
@@ -1,26 +1,30 @@
1
1
  # Change Log
2
2
 
3
- This project adheres to [Semantic Versioning](http://semver.org/).
3
+ ## [Unreleased](https://github.com/sensu-extensions/sensu-extensions-occurrences/tree/HEAD)
4
4
 
5
- This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/).
5
+ [Full Changelog](https://github.com/sensu-extensions/sensu-extensions-occurrences/compare/v1.1.0...HEAD)
6
6
 
7
- ## [1.0.0] - 2016-07-27
7
+ **Closed issues:**
8
8
 
9
- ### Added
9
+ - flapping action not handled [\#5](https://github.com/sensu-extensions/sensu-extensions-occurrences/issues/5)
10
+ - Not respecting check config for occurences [\#4](https://github.com/sensu-extensions/sensu-extensions-occurrences/issues/4)
11
+ - Event check history should be used to ensure resolution events are handled [\#1](https://github.com/sensu-extensions/sensu-extensions-occurrences/issues/1)
10
12
 
11
- - Added a LICENSE, CHANGELOG, (from
12
- [sensu-extensions/template](https://github.com/sensu-extensions/template)).
13
+ **Merged pull requests:**
13
14
 
14
- ### Changed
15
+ - Support refresh with flapping events [\#6](https://github.com/sensu-extensions/sensu-extensions-occurrences/pull/6) ([portertech](https://github.com/portertech))
15
16
 
16
- - Updated gemspec and README to better represent a desired Sensu extension
17
- repository.
17
+ ## [v1.1.0](https://github.com/sensu-extensions/sensu-extensions-occurrences/tree/v1.1.0) (2016-08-22)
18
+ [Full Changelog](https://github.com/sensu-extensions/sensu-extensions-occurrences/compare/v1.0.0...v1.1.0)
18
19
 
19
- ## 0.0.1 - 2016-07-21
20
+ **Merged pull requests:**
20
21
 
21
- ### Added
22
+ - Updating logic to consider occurrence\_watermark when handling resolve events [\#2](https://github.com/sensu-extensions/sensu-extensions-occurrences/pull/2) ([cwjohnston](https://github.com/cwjohnston))
22
23
 
23
- - Initial release.
24
+ ## [v1.0.0](https://github.com/sensu-extensions/sensu-extensions-occurrences/tree/v1.0.0) (2016-07-27)
25
+ [Full Changelog](https://github.com/sensu-extensions/sensu-extensions-occurrences/compare/v0.0.1...v1.0.0)
24
26
 
25
- [Unreleased]: https://github.com/sensu-extensions/sensu-extensions-occurrences/compare/v1.0.0...HEAD
26
- [1.0.0]: https://github.com/sensu-extensions/sensu-extensions-occurrences/compare/v0.0.1...v1.0.0
27
+ ## [v0.0.1](https://github.com/sensu-extensions/sensu-extensions-occurrences/tree/v0.0.1) (2016-07-21)
28
+
29
+
30
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/README.md CHANGED
@@ -14,6 +14,8 @@ Users can specify a minimum number of `occurrences` before an event
14
14
  will be passed to a handler. Users can also specify a `refresh` time,
15
15
  in seconds, to reset where recurrences are counted from.
16
16
 
17
+ [![Build Status](https://travis-ci.org/sensu-extensions/sensu-extensions-occurrences.svg?branch=master)](https://travis-ci.org/sensu/sensu-extensions-occurrences)
18
+
17
19
  ## Configuration
18
20
 
19
21
  The `occurrences` filter is included in every install of Sensu. To
@@ -29,7 +29,8 @@ module Sensu
29
29
  if event[:occurrences] < occurrences
30
30
  return ["not enough occurrences", 0]
31
31
  end
32
- if event[:occurrences] > occurrences && event[:action] == :create
32
+ if event[:occurrences] > occurrences &&
33
+ [:create, :flapping].include?(event[:action])
33
34
  interval = check[:interval] || 60
34
35
  count = refresh.fdiv(interval).to_i
35
36
  unless count == 0 || (event[:occurrences] - occurrences) % count == 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-extensions-occurrences
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Extensions and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-22 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-extension
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: github_changelog_generator
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: The Sensu Core built-in occurrences filter
98
112
  email:
99
113
  - "<sensu-users@googlegroups.com>"