fluent-plugin-notifier 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-notifier.gemspec +3 -3
- data/lib/fluent/plugin/out_notifier.rb +7 -2
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661e25eea2608a53c2d916f2b70ef0c4b7ffcbb6
|
4
|
+
data.tar.gz: 5672d2a300cb2009442b678a8bd88caeb3c4ff37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ed2a3ff591e1c35f0d5b423daae24e12e7fbbc4bfbd8eda4282b8ad74a6b7ca63878200a015124433de9f178203d9d45328ab974e7c74e42e0604c64597b17
|
7
|
+
data.tar.gz: 63cc3d73f7d5daea73f57fa3366c033834e8b93c9348c375382c432b3ef93fcc51e672d264c7a69f2b6c667cf79b4cbf3414dedebe824ef4155ce67db8f65b7b
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-notifier"
|
4
|
-
gem.version = "0.
|
4
|
+
gem.version = "0.3.0"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi"]
|
6
6
|
gem.email = ["tagomoris@gmail.com"]
|
7
7
|
gem.summary = %q{check matched messages and emit alert message}
|
8
8
|
gem.description = %q{check matched messages and emit alert message with throttling by conditions...}
|
9
9
|
gem.homepage = "https://github.com/tagomoris/fluent-plugin-notifier"
|
10
|
-
gem.license = "
|
10
|
+
gem.license = "Apache-2.0"
|
11
11
|
|
12
12
|
gem.files = `git ls-files`.split($\)
|
13
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -16,5 +16,5 @@ Gem::Specification.new do |gem|
|
|
16
16
|
|
17
17
|
gem.add_development_dependency "test-unit"
|
18
18
|
gem.add_development_dependency "rake"
|
19
|
-
gem.add_runtime_dependency "fluentd"
|
19
|
+
gem.add_runtime_dependency "fluentd", "< 0.14.0"
|
20
20
|
end
|
@@ -79,6 +79,11 @@ class Fluent::NotifierOutput < Fluent::Output
|
|
79
79
|
define_method("log") { $log }
|
80
80
|
end
|
81
81
|
|
82
|
+
# Define `log` method for v0.10.57 or earlier
|
83
|
+
unless method_defined?(:router)
|
84
|
+
define_method(:router) { Fluent::Engine }
|
85
|
+
end
|
86
|
+
|
82
87
|
def configure(conf)
|
83
88
|
super
|
84
89
|
|
@@ -130,11 +135,11 @@ class Fluent::NotifierOutput < Fluent::Output
|
|
130
135
|
state = @states[hashkey]
|
131
136
|
if state
|
132
137
|
unless state.suppress?(definition, n)
|
133
|
-
|
138
|
+
router.emit(tag, Fluent::Engine.now, n)
|
134
139
|
state.update_notified(definition, n)
|
135
140
|
end
|
136
141
|
else
|
137
|
-
|
142
|
+
router.emit(tag, Fluent::Engine.now, n)
|
138
143
|
@states[hashkey] = State.new(n)
|
139
144
|
end
|
140
145
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: fluentd
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "<"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.14.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "<"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.14.0
|
55
55
|
description: check matched messages and emit alert message with throttling by conditions...
|
56
56
|
email:
|
57
57
|
- tagomoris@gmail.com
|
@@ -74,7 +74,7 @@ files:
|
|
74
74
|
- test/plugin/test_test.rb
|
75
75
|
homepage: https://github.com/tagomoris/fluent-plugin-notifier
|
76
76
|
licenses:
|
77
|
-
-
|
77
|
+
- Apache-2.0
|
78
78
|
metadata: {}
|
79
79
|
post_install_message:
|
80
80
|
rdoc_options: []
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.8
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: check matched messages and emit alert message
|
@@ -102,4 +102,3 @@ test_files:
|
|
102
102
|
- test/plugin/test_out_notifier.rb
|
103
103
|
- test/plugin/test_state.rb
|
104
104
|
- test/plugin/test_test.rb
|
105
|
-
has_rdoc:
|