cloud_watch_logs_poller 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_watch_logs_poller/process.rb +4 -0
- data/lib/cloud_watch_logs_poller/version.rb +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: fc88f8d5963c66a36bc794f6f7a101d080342aba5d7a2577d956b39417a93e76
|
4
|
+
data.tar.gz: 9d4f3209935a3b0ceab85ab8e5842681c3804e7c8d0d99f528e5f1064c30331e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae1401221a8a7e900ae59fbc14b744a06184e2f58a03300d8114850c7f8d2dfcdac67b0256ef82acca352302d0fc647f28b488a0956903791a78fcd9a1b30497
|
7
|
+
data.tar.gz: e50f5a485af34912b8225f57177efa6cb5507337f81477a2be6d5ad937ba70f5597adf56b845a974daff8a72068884bc7444ede716bdb6e69dd953e4d49cca7c
|
@@ -4,6 +4,7 @@ module CloudWatchLogsPoller
|
|
4
4
|
@client = Aws::CloudWatchLogs::Client.new
|
5
5
|
@interval = interval
|
6
6
|
@debug = debug
|
7
|
+
@event_ids = []
|
7
8
|
end
|
8
9
|
|
9
10
|
def execute(log_group_name:, log_stream_name_prefix: nil, filter_pattern: nil, start_time: Time.now, &block)
|
@@ -19,6 +20,9 @@ module CloudWatchLogsPoller
|
|
19
20
|
loop do
|
20
21
|
result = @client.filter_log_events(params)
|
21
22
|
result.events.each do |event|
|
23
|
+
next if @event_ids.include?(event.event_id)
|
24
|
+
|
25
|
+
@event_ids << event.event_id
|
22
26
|
block.call(Event.convert_from_filtered_log_event(event))
|
23
27
|
end
|
24
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud_watch_logs_poller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takahiro Ooishi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-cloudwatchlogs
|