Class: AwsLogs::Streams

Inherits:
Base
  • Object
show all
Defined in:
lib/aws_logs/streams.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from AwsServices

#cloudwatchlogs

Constructor Details

This class inherits a constructor from AwsLogs::Base

Instance Method Details

#runObject



3
4
5
6
7
8
9
10
11
# File 'lib/aws_logs/streams.rb', line 3

def run
  resp = cloudwatchlogs.describe_log_streams(
    log_group_name: @log_group_name,
    descending: descending,
    order_by: order_by,
  )
  names = resp.log_streams.map { |s| s.log_stream_name }
  puts names
end