fluent-plugin-ping_port 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-ping_port.gemspec +1 -1
- data/lib/fluent/plugin/in_ping_port.rb +5 -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: 4f6b41e60ba5765fc9167249873f44dbd1c9228c
|
4
|
+
data.tar.gz: 8019934b66b16f1e8d6226f3d2845663cb19caed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d40c878105ad6ee719226587e57d5e89f5c960d4930291f287380105414f8655c480fa37bfd444fc16e4714d7bb27df27220516b6af4af2297b5c44a209d8dc7
|
7
|
+
data.tar.gz: 310193d6e7b78935edaf70b3c6cb0a18a63bab5da0e0eddd4acd22552a3fe1f83ec3cab7a35bf52d3453e50fd7df3d43ab5d19122b1841cdd189ab3e5eeda231
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "fluent-plugin-ping_port"
|
5
|
-
gem.version = "0.0.
|
5
|
+
gem.version = "0.0.2"
|
6
6
|
gem.summary = %q{health check with port plugin for fluentd.}
|
7
7
|
gem.description = %q{health check with port plugin for fluentd.}
|
8
8
|
gem.license = "MIT"
|
@@ -8,6 +8,10 @@ module Fluent
|
|
8
8
|
require 'timeout'
|
9
9
|
end
|
10
10
|
|
11
|
+
unless method_defined?(:router)
|
12
|
+
define_method("router") { Fluent::Engine }
|
13
|
+
end
|
14
|
+
|
11
15
|
config_param :tag, :string
|
12
16
|
config_param :host, :string
|
13
17
|
config_param :port, :string
|
@@ -48,7 +52,7 @@ module Fluent
|
|
48
52
|
record = {
|
49
53
|
'message' => "#{@host}:#{port} Connect Error."
|
50
54
|
}
|
51
|
-
|
55
|
+
router.emit @tag, Fluent::Engine.now, record
|
52
56
|
@state[port] = 0
|
53
57
|
end
|
54
58
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-ping_port
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Toyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|