Class: Ansible::Ruby::Modules::Pagerduty_alert

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.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

#api_keyString

Returns The pagerduty API key (readonly access), generated on the pagerduty site.

Returns:

  • (String)

    The pagerduty API key (readonly access), generated on the pagerduty site.



22
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 22

attribute :api_key

#clientString?

Returns The name of the monitoring client that is triggering this event.

Returns:

  • (String, nil)

    The name of the monitoring client that is triggering this event.



34
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 34

attribute :client

#client_urlString?

Returns The URL of the monitoring client that is triggering this event.

Returns:

  • (String, nil)

    The URL of the monitoring client that is triggering this event.



38
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 38

attribute :client_url

#descString?

Returns For C(triggered) I(state) - Required. Short description of the problem that led to this trigger. This field (or a truncated version) will be used when generating phone calls, SMS messages and alert emails. It will also appear on the incidents tables in the PagerDuty UI. The maximum length is 1024 characters.,For C(acknowledged) or C(resolved) I(state) - Text that will appear in the incident’s log associated with this event.

Returns:

  • (String, nil)

    For C(triggered) I(state) - Required. Short description of the problem that led to this trigger. This field (or a truncated version) will be used when generating phone calls, SMS messages and alert emails. It will also appear on the incidents tables in the PagerDuty UI. The maximum length is 1024 characters.,For C(acknowledged) or C(resolved) I(state) - Text that will appear in the incident’s log associated with this event.



26
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 26

attribute :desc

#incident_keyString?

Returns Identifies the incident to which this I(state) should be applied.,For C(triggered) I(state) - If there’s no open (i.e. unresolved) incident with this key, a new one will be created. If there’s already an open incident with a matching key, this event will be appended to that incident’s log. The event key provides an easy way to “de-dup” problem reports.,For C(acknowledged) or C(resolved) I(state) - This should be the incident_key you received back when the incident was first opened by a trigger event. Acknowledge events referencing resolved or nonexistent incidents will be discarded.

Returns:

  • (String, nil)

    Identifies the incident to which this I(state) should be applied.,For C(triggered) I(state) - If there’s no open (i.e. unresolved) incident with this key, a new one will be created. If there’s already an open incident with a matching key, this event will be appended to that incident’s log. The event key provides an easy way to “de-dup” problem reports.,For C(acknowledged) or C(resolved) I(state) - This should be the incident_key you received back when the incident was first opened by a trigger event. Acknowledge events referencing resolved or nonexistent incidents will be discarded.



30
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 30

attribute :incident_key

#nameString

Returns PagerDuty unique subdomain.

Returns:

  • (String)

    PagerDuty unique subdomain.



10
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 10

attribute :name

#service_keyString

Returns The GUID of one of your “Generic API” services.,This is the “service key” listed on a Generic API’s service detail page.

Returns:

  • (String)

    The GUID of one of your “Generic API” services.,This is the “service key” listed on a Generic API’s service detail page.



14
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 14

attribute :service_key

#state:triggered, ...

Returns Type of event to be sent.

Returns:

  • (:triggered, :acknowledged, :resolved)

    Type of event to be sent.



18
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb', line 18

attribute :state