Class: Aws::CloudWatch::CompositeAlarm::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::CloudWatch::CompositeAlarm::Collection
- Defined in:
- lib/aws-sdk-cloudwatch/composite_alarm.rb
Batch Actions collapse
- #batch_delete!(options = {}) ⇒ void
- #batch_disable_actions(options = {}) ⇒ void
- #batch_enable_actions(options = {}) ⇒ void
Instance Method Details
#batch_delete!(options = {}) ⇒ void
This method returns an undefined value.
509 510 511 512 513 514 515 516 517 518 519 520 521 |
# File 'lib/aws-sdk-cloudwatch/composite_alarm.rb', line 509 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.
525 526 527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/aws-sdk-cloudwatch/composite_alarm.rb', line 525 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.
541 542 543 544 545 546 547 548 549 550 551 552 553 |
# File 'lib/aws-sdk-cloudwatch/composite_alarm.rb', line 541 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 |