Class: Aws::CloudWatch::CompositeAlarm::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::CloudWatch::CompositeAlarm::Collection
- Defined in:
- gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/composite_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.
493 494 495 496 497 498 499 500 501 502 503 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/composite_alarm.rb', line 493 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 batch[0].client.delete_alarms(params) end nil end |
#batch_disable_actions(options = {}) ⇒ void
This method returns an undefined value.
507 508 509 510 511 512 513 514 515 516 517 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/composite_alarm.rb', line 507 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 batch[0].client.disable_alarm_actions(params) end nil end |
#batch_enable_actions(options = {}) ⇒ void
This method returns an undefined value.
521 522 523 524 525 526 527 528 529 530 531 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/composite_alarm.rb', line 521 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 batch[0].client.enable_alarm_actions(params) end nil end |