fluent-plugin-anomalydetect 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-anormalydetect.gemspec +1 -1
- data/lib/fluent/plugin/out_anomalydetect.rb +8 -8
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f17aef618203dff62c12e92c20cfe75bb15ac25
|
4
|
+
data.tar.gz: c8ec9bd378b6a860849d62da0e47ca0be76d8496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3897bb15f6337a90ccbbad40b31790dcb2276956d6be4764d917f04e3bbee522de4675a612875cf21296d510cfe4fd9ed4bf664c57e72caebc398733c3f567d5
|
7
|
+
data.tar.gz: 7f0c0e735d3f00169514fe7aef92645d101d11b045372b75f9520f144353b4780b68c9804cd1758cad9e537bb79b5eb5e205b3feffe985dbf14c60b8648c66d5
|
@@ -3,7 +3,7 @@ lib = File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-anomalydetect"
|
6
|
-
gem.version = "0.1.
|
6
|
+
gem.version = "0.1.4"
|
7
7
|
gem.authors = ["Muddy Dixon"]
|
8
8
|
gem.email = ["muddydixon@gmail.com"]
|
9
9
|
gem.description = %q{detect anomal sequential input casually}
|
@@ -164,7 +164,7 @@ module Fluent
|
|
164
164
|
load_from_file
|
165
165
|
start_watch
|
166
166
|
rescue => e
|
167
|
-
|
167
|
+
log.warn "anomalydetect: #{e.class} #{e.message} #{e.backtrace.first}"
|
168
168
|
end
|
169
169
|
|
170
170
|
def shutdown
|
@@ -175,7 +175,7 @@ module Fluent
|
|
175
175
|
end
|
176
176
|
store_to_file
|
177
177
|
rescue => e
|
178
|
-
|
178
|
+
log.warn "anomalydetect: #{e.class} #{e.message} #{e.backtrace.first}"
|
179
179
|
end
|
180
180
|
|
181
181
|
def start_watch
|
@@ -197,7 +197,7 @@ module Fluent
|
|
197
197
|
@last_checked = now
|
198
198
|
end
|
199
199
|
rescue => e
|
200
|
-
|
200
|
+
log.warn "anomalydetect: #{e.class} #{e.message} #{e.backtrace.first}"
|
201
201
|
end
|
202
202
|
end
|
203
203
|
end
|
@@ -270,7 +270,7 @@ module Fluent
|
|
270
270
|
|
271
271
|
score = scores(tag, target).next(outlier_avg)
|
272
272
|
|
273
|
-
|
273
|
+
log.debug "out_anomalydetect:#{Thread.current.object_id} tag:#{tag} val:#{val} outlier:#{outlier} outlier_buf:#{outlier_buf} score:#{score} mu:#{mu}"
|
274
274
|
|
275
275
|
[outlier, score, mu]
|
276
276
|
end
|
@@ -292,7 +292,7 @@ module Fluent
|
|
292
292
|
|
293
293
|
chain.next
|
294
294
|
rescue => e
|
295
|
-
|
295
|
+
log.warn "anomalydetect: #{e.class} #{e.message} #{e.backtrace.first}"
|
296
296
|
end
|
297
297
|
|
298
298
|
def load_from_file
|
@@ -314,11 +314,11 @@ module Fluent
|
|
314
314
|
@outlier_bufs = stored[:outlier_bufs]
|
315
315
|
@scores = stored[:scores]
|
316
316
|
else
|
317
|
-
|
317
|
+
log.warn "anomalydetect: configuration param was changed. ignore stored data"
|
318
318
|
end
|
319
319
|
end
|
320
320
|
rescue => e
|
321
|
-
|
321
|
+
log.warn "anomalydetect: Can't load store_file #{e}"
|
322
322
|
end
|
323
323
|
end
|
324
324
|
|
@@ -339,7 +339,7 @@ module Fluent
|
|
339
339
|
}, f)
|
340
340
|
end
|
341
341
|
rescue => e
|
342
|
-
|
342
|
+
log.warn "anomalydetect: Can't write store_file #{e}"
|
343
343
|
end
|
344
344
|
end
|
345
345
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-anomalydetect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Muddy Dixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.0.
|
105
|
+
rubygems_version: 2.0.0
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: detect anomal sequential input casually
|
@@ -110,3 +110,4 @@ test_files:
|
|
110
110
|
- test/helper.rb
|
111
111
|
- test/plugin/test_out_anomalydetect.rb
|
112
112
|
- test/stock.2432.csv
|
113
|
+
has_rdoc:
|