meteorlog 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/meteorlog/client.rb +4 -1
- data/lib/meteorlog/dsl/context/log_group.rb +5 -0
- data/lib/meteorlog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 581bea745faa02b6c339dc42d7a8e3bc25487061
|
4
|
+
data.tar.gz: 2b3b87b66030d0c13c28f1710eccf5dfcb35fa8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e204267e96a26247b7831daf41a12f1c020eed881f979613d43b9c3145d56d2be9e36ccfc3c9b3d546c4707abcb6beaa6e8b6e6ae904e4590efdf634e4099150
|
7
|
+
data.tar.gz: d60c21ed10db6f6005f3f7c6fe04a3f00b87527f6bca897b55f7851e020ff005c95af2204dd953dc47997ee3d1c2603a29d567149af686d61e85fc72a9191bdb
|
data/README.md
CHANGED
@@ -57,6 +57,9 @@ require 'other/logsfile'
|
|
57
57
|
log_group "/var/log/messages" do
|
58
58
|
log_stream "my-stream"
|
59
59
|
|
60
|
+
# Please write the following if you do not want to manage log_streams
|
61
|
+
#any_log_streams
|
62
|
+
|
60
63
|
metric_filter "MyAppAccessCount" do
|
61
64
|
metric :name=>"EventCount", :namespace=>"YourNamespace", :value=>"1"
|
62
65
|
end
|
data/lib/meteorlog/client.rb
CHANGED
@@ -46,7 +46,10 @@ class Meteorlog::Client
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def walk_log_group(dsl_log_group, aws_log_group)
|
49
|
-
|
49
|
+
unless dsl_log_group.any_log_streams
|
50
|
+
walk_log_streams(dsl_log_group.log_streams, aws_log_group.log_streams)
|
51
|
+
end
|
52
|
+
|
50
53
|
walk_metric_filters(dsl_log_group.metric_filters, aws_log_group.metric_filters)
|
51
54
|
end
|
52
55
|
|
@@ -13,6 +13,11 @@ class Meteorlog::DSL::Context::LogGroup
|
|
13
13
|
instance_eval(&block)
|
14
14
|
end
|
15
15
|
|
16
|
+
def any_log_streams
|
17
|
+
_call_once(:any_log_streams)
|
18
|
+
@result.any_log_streams = true
|
19
|
+
end
|
20
|
+
|
16
21
|
def log_stream(name)
|
17
22
|
_required(:log_stream_name, name)
|
18
23
|
_validate("LogStream `#{name}` is already defined") do
|
data/lib/meteorlog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meteorlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|