Skip to content

Commit

Permalink
Merge pull request #18 from rundeckpro/ddarby-hike-notifications
Browse files Browse the repository at this point in the history
Add start/success notification messages using PD Incident Note notification plugin.
  • Loading branch information
jsboak authored May 15, 2023
2 parents 0e3f8c0 + 8a3495e commit 44f0d3e
Show file tree
Hide file tree
Showing 40 changed files with 858 additions and 66 deletions.
21 changes: 19 additions & 2 deletions API/API Endpoint Health Check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
25 changes: 25 additions & 0 deletions API/Query API Endpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,31 @@
ExecutionLifecycle: null
scheduleEnabled: true
schedules: []
notification:
onfailure:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
sequence:
commands:
- configuration:
Expand Down
21 changes: 19 additions & 2 deletions AWS/CloudWatch Logs/Nginx Rejected Requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions AWS/EC2/Retrieve Instance Status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions AWS/ECS/Java Thread Dump from Container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions AWS/ECS/Stopped ECS Task Errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions AWS/ELB/Retrieve ELB Targets Health Status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions AWS/RDS/Check Database Storage Status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions Cassandra/Check Compaction Stastics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
nodefilters:
Expand Down
21 changes: 19 additions & 2 deletions Kafka/Describe Kafka Topic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions Kafka/List Kafka Topics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
nodefilters:
Expand Down
21 changes: 19 additions & 2 deletions Kafka/View Topic Messages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
nodefilters:
Expand Down
21 changes: 19 additions & 2 deletions Kubernetes/Describe Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
21 changes: 19 additions & 2 deletions Kubernetes/Describe Replicaset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,25 @@
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated diagnostics job did not complete. For full details, click
here: ${job.url}#output'
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Failed for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onstart:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Started for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
onsuccess:
plugin:
configuration:
incident_id: ${option.pd_incident_id}
note: 'Automated Diagnostics job "${job.project}/${job.group}/${job.name}"
Succeeded for incident "${option.pd_incident_id}". See the full Process Automation
log at: ${job.url}#output'
type: pd-note-incident-notification
notifyAvgDurationThreshold: null
options:
Expand Down
Loading

0 comments on commit 44f0d3e

Please sign in to comment.