logstash-filter-empowclassifier 0.3.16 → 0.3.17
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 +4 -4
- data/lib/logstash/filters/classifier.rb +10 -2
- data/logstash-filter-empowclassifier.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0aeb59d976c20fb61725b3f813832657b5a4048d6c13c4f9596f4a539bd532d5
|
|
4
|
+
data.tar.gz: c7fd0c83962afb05c0d9ef013d0e80d304a82dd1e21f93585eb88a73b85cab35
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b56eb4ce63a817250a28a7f787a2db582bf9c5b48932c0864125918ba0880c04e161226a2dd49cea6d66fb766d28d47216f3ac592a9489653eebffd8f5598525
|
|
7
|
+
data.tar.gz: f94f0e6f946f9955697a6968ad10bc83d4bfcd0e8a7232c8427e787aa579031f8af0ab819b142742c416ee8d4fa175a159c826701a7659bbd23392d436653874
|
|
@@ -99,7 +99,7 @@ module LogStash; module Filters; module Empow;
|
|
|
99
99
|
|
|
100
100
|
res = @local_classifier.classify(request)
|
|
101
101
|
|
|
102
|
-
@logger.
|
|
102
|
+
@logger.trace("cached result", :request => request, :res => res)
|
|
103
103
|
|
|
104
104
|
return res if !res.nil?
|
|
105
105
|
|
|
@@ -185,8 +185,16 @@ module LogStash; module Filters; module Empow;
|
|
|
185
185
|
if (@current_batch_size == @max_batch_size \
|
|
186
186
|
or (@current_batch_size > 0 and (current_time - @last_execution_time) > BATCH_TIMEOUT))
|
|
187
187
|
|
|
188
|
+
bulk_size = @current_batch_size
|
|
189
|
+
batch = @current_batch
|
|
190
|
+
|
|
188
191
|
@online_classification_workers.post do
|
|
189
|
-
|
|
192
|
+
st = Time.now
|
|
193
|
+
classify_online(batch)
|
|
194
|
+
et = Time.now
|
|
195
|
+
diff = (et - st)
|
|
196
|
+
|
|
197
|
+
@logger.debug("response received", :bulk_size => bulk_size, :time => diff)
|
|
190
198
|
end
|
|
191
199
|
|
|
192
200
|
clear_batch(current_time)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'logstash-filter-empowclassifier'
|
|
3
|
-
s.version = '0.3.
|
|
3
|
+
s.version = '0.3.17'
|
|
4
4
|
s.licenses = ['Apache-2.0']
|
|
5
5
|
s.summary = 'Logstash intent classification plugin client for accessing empow''s classifiction cloud'
|
|
6
6
|
#s.description = 'Write a longer description or delete this line.'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: logstash-filter-empowclassifier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- empow
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2019-
|
|
13
|
+
date: 2019-02-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|