pagerduty_alert: remove redundant required=false (#9618)
parent
f5cbf5acc7
commit
6294f0b747
|
@ -73,24 +73,20 @@ options:
|
|||
type: str
|
||||
description:
|
||||
- The name of the monitoring client that is triggering this event.
|
||||
required: false
|
||||
client_url:
|
||||
type: str
|
||||
description:
|
||||
- The URL of the monitoring client that is triggering this event.
|
||||
required: false
|
||||
component:
|
||||
type: str
|
||||
description:
|
||||
- Component of the source machine that is responsible for the event, for example C(mysql) or C(eth0).
|
||||
required: false
|
||||
version_added: 7.4.0
|
||||
custom_details:
|
||||
type: dict
|
||||
description:
|
||||
- Additional details about the event and affected system.
|
||||
- A dictionary with custom keys and values.
|
||||
required: false
|
||||
version_added: 7.4.0
|
||||
desc:
|
||||
type: str
|
||||
|
@ -100,13 +96,11 @@ options:
|
|||
tables in the PagerDuty UI. The maximum length is 1024 characters.
|
||||
- For O(state=acknowledged) or O(state=resolved) - Text that will appear in the incident's log associated with this
|
||||
event.
|
||||
required: false
|
||||
default: Created via Ansible
|
||||
incident_class:
|
||||
type: str
|
||||
description:
|
||||
- The class/type of the event, for example C(ping failure) or C(cpu load).
|
||||
required: false
|
||||
version_added: 7.4.0
|
||||
incident_key:
|
||||
type: str
|
||||
|
@ -118,25 +112,21 @@ options:
|
|||
be generated by PagerDuty.
|
||||
- For O(state=acknowledged) or O(state=resolved) - 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.
|
||||
required: false
|
||||
link_url:
|
||||
type: str
|
||||
description:
|
||||
- Relevant link URL to the alert. For example, the website or the job link.
|
||||
required: false
|
||||
version_added: 7.4.0
|
||||
link_text:
|
||||
type: str
|
||||
description:
|
||||
- A short description of the O(link_url).
|
||||
required: false
|
||||
version_added: 7.4.0
|
||||
source:
|
||||
type: str
|
||||
description:
|
||||
- The unique location of the affected system, preferably a hostname or FQDN.
|
||||
- Required in case of O(state=trigger) and O(api_version=v2).
|
||||
required: false
|
||||
version_added: 7.4.0
|
||||
severity:
|
||||
type: str
|
||||
|
@ -332,25 +322,25 @@ def send_event_v2(module, service_key, event_type, payload, link,
|
|||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
name=dict(required=False),
|
||||
api_key=dict(required=False, no_log=True),
|
||||
integration_key=dict(required=False, no_log=True),
|
||||
service_id=dict(required=False),
|
||||
service_key=dict(required=False, no_log=True),
|
||||
name=dict(),
|
||||
api_key=dict(no_log=True),
|
||||
integration_key=dict(no_log=True),
|
||||
service_id=dict(),
|
||||
service_key=dict(no_log=True),
|
||||
state=dict(
|
||||
required=True, choices=['triggered', 'acknowledged', 'resolved']
|
||||
),
|
||||
api_version=dict(type='str', default='v1', choices=['v1', 'v2']),
|
||||
client=dict(required=False),
|
||||
client_url=dict(required=False),
|
||||
component=dict(required=False),
|
||||
custom_details=dict(required=False, type='dict'),
|
||||
desc=dict(required=False, default='Created via Ansible'),
|
||||
incident_class=dict(required=False),
|
||||
incident_key=dict(required=False, no_log=False),
|
||||
link_url=dict(required=False),
|
||||
link_text=dict(required=False),
|
||||
source=dict(required=False),
|
||||
client=dict(),
|
||||
client_url=dict(),
|
||||
component=dict(),
|
||||
custom_details=dict(type='dict'),
|
||||
desc=dict(default='Created via Ansible'),
|
||||
incident_class=dict(),
|
||||
incident_key=dict(no_log=False),
|
||||
link_url=dict(),
|
||||
link_text=dict(),
|
||||
source=dict(),
|
||||
severity=dict(
|
||||
default='critical', choices=['critical', 'warning', 'error', 'info']
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue