Class: Ansible::Ruby::Modules::Clc_alert_policy

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#alert_recipientsObject?

Returns A list of recipient email ids to notify the alert. This is required for state ‘present’.

Returns:

  • (Object, nil)

    A list of recipient email ids to notify the alert. This is required for state ‘present’



21
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 21

attribute :alert_recipients

#aliasObject

Returns The alias of your CLC Account.

Returns:

  • (Object)

    The alias of your CLC Account



10
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 10

attribute :alias

#durationObject?

Returns The length of time in minutes that the condition must exceed the threshold. This is required for state ‘present’.

Returns:

  • (Object, nil)

    The length of time in minutes that the condition must exceed the threshold. This is required for state ‘present’



28
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 28

attribute :duration

#idObject?

Returns The alert policy id. This is mutually exclusive with name.

Returns:

  • (Object, nil)

    The alert policy id. This is mutually exclusive with name



18
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 18

attribute :id

#metric:cpu, ...

Returns The metric on which to measure the condition that will trigger the alert. This is required for state ‘present’.

Returns:

  • (:cpu, :memory, :disk, nil)

    The metric on which to measure the condition that will trigger the alert. This is required for state ‘present’



24
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 24

attribute :metric

#nameString?

Returns The name of the alert policy. This is mutually exclusive with id.

Returns:

  • (String, nil)

    The name of the alert policy. This is mutually exclusive with id



14
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 14

attribute :name

#state:present, ...

Returns Whether to create or delete the policy.

Returns:

  • (:present, :absent, nil)

    Whether to create or delete the policy.



34
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 34

attribute :state

#thresholdObject?

Returns The threshold that will trigger the alert when the metric equals or exceeds it. This is required for state ‘present’ This number represents a percentage and must be a value between 5.0 - 95.0 that is a multiple of 5.0.

Returns:

  • (Object, nil)

    The threshold that will trigger the alert when the metric equals or exceeds it. This is required for state ‘present’ This number represents a percentage and must be a value between 5.0 - 95.0 that is a multiple of 5.0



31
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb', line 31

attribute :threshold