Class: Meteorlog::Client
Instance Method Summary
collapse
Methods included from Utils
collect_to_hash, matched?
#log
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
5
6
7
8
|
# File 'lib/meteorlog/client.rb', line 5
def initialize(options = {})
@options = options
@cloud_watch_logs = Aws::CloudWatchLogs::Client.new
end
|
Instance Method Details
#apply(file) ⇒ Object
15
16
17
|
# File 'lib/meteorlog/client.rb', line 15
def apply(file)
walk(file)
end
|
#export(opts = {}) ⇒ Object
10
11
12
13
|
# File 'lib/meteorlog/client.rb', line 10
def export(opts = {})
exported = Meteorlog::Exporter.export(@cloud_watch_logs, @options.merge(opts))
Meteorlog::DSL.convert(exported, @options.merge(opts))
end
|