soar_auditing_provider 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e5afebbca1923373653a142f02a6a7c5dda6d2f
4
- data.tar.gz: 1367dbae9df9debc6a777158732b2a41b25baffc
3
+ metadata.gz: 8f6e6230240453cbcf257ea412f057a05cbd6fbf
4
+ data.tar.gz: 7a1b94a471a5dddc85c830c581f41e36d92983e7
5
5
  SHA512:
6
- metadata.gz: e8ee231018f389d0754d23327b9c1c20e78422d100a4b3feacce9443368686de6274bae80db18172744d355195f5d0ca2114d66ae33ad7847c4da6e3285325e3
7
- data.tar.gz: a4914177481c905ca9438302cbd230f1dbf6f22845b6267c92de887a4464c8f50038d158111b55284a179f9c204f618d21da013ae3564e58896feb9a39a3f4ee
6
+ metadata.gz: 2431fa22341e866135f6e431fe151a9566e44fa51f83275d1ced4ffd6161bf4c55306ad58c9333102d405d46cb51f3d1e191f9884d11bae88eba230f24f07ad7
7
+ data.tar.gz: a0de67d9d644f525e28cfd30700d158f29c864c123a410dd44b38bc98b1c6260ebad9b2ca1ab04809af41e649a376ce7ad1615f5c38a3a95b2da3f21949ec3ea
@@ -166,15 +166,7 @@ module SoarAuditingProvider
166
166
 
167
167
  def verbose_status_detail
168
168
  {
169
- 'worker' => {
170
- 'dequeued_audits' => @worker.dequeued_audits,
171
- 'successful_audits' => @worker.successful_audits,
172
- 'failed_audit_attempts' => @worker.failed_audit_attempts,
173
- 'latest_successful_audit_timespan' => @worker.latest_successful_audit_timespan,
174
- 'latest_successful_audit_timestamp' => @worker.latest_successful_audit_timestamp,
175
- 'latest_failed_audit_timestamp' => @worker.latest_failed_audit_timestamp,
176
- 'latest_failed_audit_error_message' => @worker.latest_failed_audit_error_message
177
- }
169
+ 'worker' => @worker.status_detail
178
170
  }
179
171
  end
180
172
 
@@ -2,14 +2,6 @@ require 'soar_thread_worker/thread_worker'
2
2
 
3
3
  module SoarAuditingProvider
4
4
  class AuditingWorker < SoarThreadWorker::ThreadWorker
5
- attr_reader :failed_audit_attempts
6
- attr_reader :latest_failed_audit_timestamp
7
- attr_reader :latest_failed_audit_error_message
8
- attr_reader :successful_audits
9
- attr_reader :dequeued_audits
10
- attr_reader :latest_successful_audit_timespan
11
- attr_reader :latest_successful_audit_timestamp
12
-
13
5
  def initialize
14
6
  @queue = Queue.new
15
7
  @start_mutex = Mutex.new
@@ -36,6 +28,7 @@ module SoarAuditingProvider
36
28
 
37
29
  def start
38
30
  @start_mutex.synchronize {
31
+ @stopping = false
39
32
  super if not running?
40
33
  }
41
34
  end
@@ -75,6 +68,19 @@ module SoarAuditingProvider
75
68
  fallback_flush_to_stderr if @queue.size > 0
76
69
  end
77
70
 
71
+ def status_detail
72
+ {
73
+ 'queue_size' => @queue.size,
74
+ 'dequeued_audits' => @dequeued_audits,
75
+ 'successful_audits' => @successful_audits,
76
+ 'failed_audit_attempts' => @failed_audit_attempts,
77
+ 'latest_successful_audit_timespan' => @latest_successful_audit_timespan,
78
+ 'latest_successful_audit_timestamp' => @latest_successful_audit_timestamp,
79
+ 'latest_failed_audit_timestamp' => @latest_failed_audit_timestamp,
80
+ 'latest_failed_audit_error_message' => @latest_failed_audit_error_message
81
+ }
82
+ end
83
+
78
84
  private
79
85
 
80
86
  def wait_for_worker_to_clear_queue(timeout = 1)
@@ -1,3 +1,3 @@
1
1
  module SoarAuditingProvider
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_auditing_provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan