Class: AWS::CloudWatch::AlarmHistoryItemCollection
Instance Method Summary
collapse
#each, #each_batch, #enum, #first, #in_groups_of, #page
Instance Method Details
32
33
34
35
|
# File 'lib/aws/cloud_watch/alarm_history_item_collection.rb', line 32
def filter name, value
filters = @filters.merge(name.to_s.to_sym => value)
AlarmHistoryItemCollection.new(:filters => filters, :config => config)
end
|
39
40
41
|
# File 'lib/aws/cloud_watch/alarm_history_item_collection.rb', line 39
def with_alarm_name name
filter(:alarm_name, name)
end
|
52
53
54
55
|
# File 'lib/aws/cloud_watch/alarm_history_item_collection.rb', line 52
def with_end_date date
date = date.iso8601 if date.respond_to?(:iso8601)
filter(:end_date, date)
end
|
45
46
47
48
|
# File 'lib/aws/cloud_watch/alarm_history_item_collection.rb', line 45
def with_start_date date
date = date.iso8601 if date.respond_to?(:iso8601)
filter(:start_date, date)
end
|
59
60
61
|
# File 'lib/aws/cloud_watch/alarm_history_item_collection.rb', line 59
def with_type type
filter(:history_item_type, type)
end
|