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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f6e6230240453cbcf257ea412f057a05cbd6fbf
|
4
|
+
data.tar.gz: 7a1b94a471a5dddc85c830c581f41e36d92983e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|