Class: Aws::CloudWatch::Alarm::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::CloudWatch::Alarm::Collection
- Defined in:
- gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/alarm.rb
Batch Actions collapse
-
#batch_delete!(options = {}) ⇒ void
-
#batch_disable_actions(options = {}) ⇒ void
-
#batch_enable_actions(options = {}) ⇒ void
Methods inherited from Resources::Collection
Instance Method Details
#batch_delete!(options = {}) ⇒ void
This method returns an undefined value.
608 609 610 611 612 613 614 615 616 617 618 619 620 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/alarm.rb', line 608 def batch_delete!( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:alarm_names] ||= [] batch.each do |item| params[:alarm_names] << item.name end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.delete_alarms(params) end end nil end |
#batch_disable_actions(options = {}) ⇒ void
This method returns an undefined value.
624 625 626 627 628 629 630 631 632 633 634 635 636 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/alarm.rb', line 624 def batch_disable_actions( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:alarm_names] ||= [] batch.each do |item| params[:alarm_names] << item.name end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.disable_alarm_actions(params) end end nil end |
#batch_enable_actions(options = {}) ⇒ void
This method returns an undefined value.
640 641 642 643 644 645 646 647 648 649 650 651 652 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/alarm.rb', line 640 def batch_enable_actions( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:alarm_names] ||= [] batch.each do |item| params[:alarm_names] << item.name end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.enable_alarm_actions(params) end end nil end |