Class: Ansible::Ruby::Modules::Rax_mon_notification

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/rackspace/rax_mon_notification.rb

Overview

Create or delete a Rackspace Cloud Monitoring notification that specifies a channel that can be used to communicate alarms, such as email, webhooks, or PagerDuty. Rackspace monitoring module flow | rax_mon_entity -> rax_mon_check -> rax_mon_notification -> rax_mon_notification_plan -> rax_mon_alarm

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#detailsObject

Returns Dictionary of key-value pairs used to initialize the notification. Required keys and meanings vary with notification type. See docs.rackspace.com/cm/api/v1.0/cm-devguide/content/ service-notification-types-crud.html for details.

Returns:



24
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_mon_notification.rb', line 24

attribute :details

#labelObject

Returns Defines a friendly name for this notification. String between 1 and 255 characters long.

Returns:

  • (Object)

    Defines a friendly name for this notification. String between 1 and 255 characters long.



16
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_mon_notification.rb', line 16

attribute :label

#notification_type:webhook, ...

Returns A supported notification type.

Returns:

  • (:webhook, :email, :pagerduty)

    A supported notification type.



20
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_mon_notification.rb', line 20

attribute :notification_type

#state:present, ...

Returns Ensure that the notification with this C(label) exists or does not exist.

Returns:

  • (:present, :absent, nil)

    Ensure that the notification with this C(label) exists or does not exist.



12
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_mon_notification.rb', line 12

attribute :state