fluent-plugin-storm 0.0.1 → 0.0.2

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: d7aad4d2fdb80bf541670b988ba0fac3353695c5
4
- data.tar.gz: 8246d9a000ef2064aeee314ccd87e0ffbd5582e4
3
+ metadata.gz: d379e70acf6fc2e73694b8b95d4ac7aeb8abd9ae
4
+ data.tar.gz: 4d297453aea8e849c330f2c7ecfa1d5a24579668
5
5
  SHA512:
6
- metadata.gz: 7385db881e037d095ce54187a2ce682f26acbc495d4586a06a53299edf94f53a9eea241460b874989db102dae8758ab91f0dad88656159007872e06cc404cf45
7
- data.tar.gz: 92179e8969654abb53492a1826bf2c22d15391da44e2e35f3ea46420bbae8697eb5c42dc44dab3c07eaaa6795ad20843c5fee59a1a93ecf6cdef21509d65fbc7
6
+ metadata.gz: 1539411745011e702d4c991e360fd30ff3319f2c1444e4e844e136d69eba4fb2ecbec2168152144d786700a433b2c0ebdf7025589081d15dc408d1186a12430c
7
+ data.tar.gz: 139bf05f1671186c21591c0ccfe9f0663fd8558d187f6628375476c5c4679b8760132b020060d003883b8b6621b6d1d771f47f7204d43fb2fecd0ea5a990aaa7
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## fluent-plugin-storm
2
2
 
3
- [storm](https://storm.apache.org/) stats input plugin
3
+ [storm](https://storm.apache.org/) [stats](https://github.com/apache/storm/blob/master/STORM-UI-REST-API.md#apiv1topologyid-get) input plugin
4
4
 
5
5
  ## Installation
6
6
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'fluent-plugin-storm'
7
- spec.version = '0.0.1'
7
+ spec.version = '0.0.2'
8
8
  spec.authors = ['Hidenori Suzuki']
9
9
  spec.email = ['hidenori.suzuki@yahoo.com']
10
10
  spec.summary = 'a fluent plugin'
@@ -62,16 +62,17 @@ module Fluent
62
62
  uri = URI.parse("#{@url}/api/v1/topology/#{topology_id}?sys=#{@sys}")
63
63
  end
64
64
  #@log.debug(uri)
65
+ emit_record = Hash.new(0)
65
66
  Net::HTTP.start(uri.host, uri.port) do |http|
66
67
  request = Net::HTTP::Get.new(uri.request_uri)
67
68
  http.request(request) do |response|
68
- record = JSON.parse(response.body) rescue next
69
- record.delete("visualizationTable")
70
- record.delete("configuration")
69
+ emit_record = JSON.parse(response.body) rescue next
70
+ emit_record.delete("visualizationTable")
71
+ emit_record.delete("configuration")
71
72
  end
72
73
  end
73
- @log.debug(record)
74
- Engine.emit(@tag, @time, record)
74
+ @log.debug(emit_record)
75
+ Engine.emit(@tag, @time, emit_record)
75
76
  end
76
77
  end
77
78
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-storm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hidenori Suzuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-29 00:00:00.000000000 Z
11
+ date: 2015-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -95,6 +95,7 @@ files:
95
95
  - Rakefile
96
96
  - fluent-plugin-storm.gemspec
97
97
  - lib/fluent/plugin/in_storm.rb
98
+ - pkg/fluent-plugin-storm-0.0.1.gem
98
99
  - spec/fluent/plugin/in_storm_spec.rb
99
100
  - spec/spec_helper.rb
100
101
  homepage: https://github.com/niyonmaruz/fluent-plugin-storm