mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[docs] Include required ARN format of actions in ec2_metric_alarm (#46514)
<!--- Your description here --> +label: docsite_pr
This commit is contained in:
parent
df57a3fc7a
commit
7fd31b1da0
1 changed files with 18 additions and 2 deletions
|
@ -103,7 +103,7 @@ options:
|
|||
required: false
|
||||
alarm_actions:
|
||||
description:
|
||||
- A list of the names action(s) taken when the alarm is in the 'alarm' status
|
||||
- A list of the names action(s) taken when the alarm is in the 'alarm' status, denoted as Amazon Resource Name(s)
|
||||
required: false
|
||||
insufficient_data_actions:
|
||||
description:
|
||||
|
@ -111,7 +111,7 @@ options:
|
|||
required: false
|
||||
ok_actions:
|
||||
description:
|
||||
- A list of the names of action(s) to take when the alarm is in the 'ok' status
|
||||
- A list of the names of action(s) to take when the alarm is in the 'ok' status, denoted as Amazon Resource Name(s)
|
||||
required: false
|
||||
extends_documentation_fragment:
|
||||
- aws
|
||||
|
@ -136,6 +136,22 @@ EXAMPLES = '''
|
|||
dimensions: {'InstanceId':'i-XXX'}
|
||||
alarm_actions: ["action1","action2"]
|
||||
|
||||
- name: Create an alarm to recover a failed instance
|
||||
ec2_metric_alarm:
|
||||
state: present
|
||||
region: us-west-1
|
||||
name: "recover-instance"
|
||||
metric: "StatusCheckFailed_System"
|
||||
namespace: "AWS/EC2"
|
||||
statistic: "Minimum"
|
||||
comparison: ">="
|
||||
threshold: 1.0
|
||||
period: 60
|
||||
evaluation_periods: 2
|
||||
unit: "Seconds"
|
||||
description: "This will recover an instance when it fails"
|
||||
dimensions: {"InstanceId":'i-XXX'}
|
||||
alarm_actions: ["arn:aws:automate:us-west-1:ec2:recover"]
|
||||
|
||||
'''
|
||||
|
||||
|
|
Loading…
Reference in a new issue