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 +4 -4
- data/CHANGELOG.md +18 -14
- data/README.md +2 -0
- data/lib/sensu/extensions/occurrences.rb +2 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f114a06cc364bcc6b9bb5b382625459e9ec2186
|
4
|
+
data.tar.gz: 1adf91374f2751e1878175231508333cfdbc9b18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac29e26a6d6d82871d29be6bbf2c845574c0cf7feb7b7bc8716c54c0b8ee4315af3f3f0ec55b73b79031866ab6adb42e1632b822acb3730e3bd9cac3260e96a0
|
7
|
+
data.tar.gz: b7d010e1391622d7c7ae7c150b1b27946ad9f07740899d5554d39ba01ae43bfc5d95ec7698342928e9801c94bd06de39b4e1cbe21cd673e69ca2d9d8c5986e7b
|
data/CHANGELOG.md
CHANGED
@@ -1,26 +1,30 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
|
3
|
+
## [Unreleased](https://github.com/sensu-extensions/sensu-extensions-occurrences/tree/HEAD)
|
4
4
|
|
5
|
-
|
5
|
+
[Full Changelog](https://github.com/sensu-extensions/sensu-extensions-occurrences/compare/v1.1.0...HEAD)
|
6
6
|
|
7
|
-
|
7
|
+
**Closed issues:**
|
8
8
|
|
9
|
-
|
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
|
-
|
12
|
-
[sensu-extensions/template](https://github.com/sensu-extensions/template)).
|
13
|
+
**Merged pull requests:**
|
13
14
|
|
14
|
-
|
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
|
-
-
|
17
|
-
|
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
|
-
|
20
|
+
**Merged pull requests:**
|
20
21
|
|
21
|
-
|
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
|
-
-
|
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
|
-
[
|
26
|
-
|
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 &&
|
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.
|
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:
|
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>"
|