From cc8513fbfb56433124080bcfa822d5382f5ff581 Mon Sep 17 00:00:00 2001
From: Dietmar Schnitzer <103405584+dietmar-91@users.noreply.github.com>
Date: Tue, 17 Sep 2024 09:41:55 +0200
Subject: [PATCH] chore: fix example section of dt_webhook in readme (#39)
* chore: fix example section of dt_webhook in readme
* chore: bump version
---
CHANGELOG.md | 18 ++++++++++++++----
README.md | 38 +++++++++++++++++++-------------------
changelogs/changelog.yaml | 7 +++++++
galaxy.yml | 2 +-
4 files changed, 41 insertions(+), 24 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f79a62c..735adf1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,16 +2,26 @@
**Topics**
-- v1\.2\.1
+- v1\.2\.2
- Minor Changes
+- v1\.2\.1
+ - Minor Changes
- v1\.2\.0
- Release Summary
- - Minor Changes
+ - Minor Changes
+
+
+## v1\.2\.2
+
+
+### Minor Changes
+
+* README \- fix dt\_webhook rulebook example
## v1\.2\.1
-
+
### Minor Changes
* ansible\-lint \- update requires\_ansible to \>\=2\.15\.0 to fix ansible\-lint action
@@ -24,7 +34,7 @@
Initial release of the even source plugin dt\_webhook\.
-
+
### Minor Changes
* Set up ansible\-lint and ansible\-test for collection\.
diff --git a/README.md b/README.md
index aef0934..b2a3f7f 100644
--- a/README.md
+++ b/README.md
@@ -52,28 +52,28 @@ This Event source plugin from Dynatrace captures all problems from your Dynatrac
## dt_webhook
-The dt_webhook event-source plugin is capable of receiving events from Dynatrace via the "Send event to Event-Driven Ansible" workflow action of the [Red Hat Ansible for Workflows integration](https://docs.dynatrace.com/docs/platform-modules/automations/workflows/actions/redhat).
+The dt_webhook event-source plugin is capable of receiving events from Dynatrace via the "Send event to Event-Driven Ansible" workflow action of the [Red Hat Ansible for Workflows integration](https://docs.dynatrace.com/docs/platform-modules/automations/workflows/actions/red-hat/redhat-even-driven-ansible).
### Example rulebook
- ```yaml
- ---
- - name: Listen for events on dt_webhook
- hosts: all
- sources:
- - dynatrace.event_driven_ansible.dt_webhook:
- host: 0.0.0.0
- port: 5000
- token: '{{ }}'
-
- rules:
- - name: API Endpoint not available
- condition: event.payload.eventData["event.name"] is match ("Monitoring not available")
- action:
- run_job_template:
- name: "Trigger test playbook"
- organization: "Default"
- ```
+```yaml
+---
+- name: Listen for events on dt_webhook
+ hosts: all
+ sources:
+ - dynatrace.event_driven_ansible.dt_webhook:
+ host: 0.0.0.0
+ port: 5000
+ token: '{{ }}'
+
+ rules:
+ - name: API Endpoint not available
+ condition: event.payload.eventData["event.name"] is match ("Monitoring not available")
+ action:
+ run_job_template:
+ name: "Trigger test playbook"
+ organization: "Default"
+```
## Licensing
diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml
index f29b252..9d7f7e2 100644
--- a/changelogs/changelog.yaml
+++ b/changelogs/changelog.yaml
@@ -15,3 +15,10 @@ releases:
fragments:
- 38-update-requires_ansible.yml
release_date: '2024-08-05'
+ 1.2.2:
+ changes:
+ minor_changes:
+ - README - fix dt_webhook rulebook example
+ fragments:
+ - 39-fix-readme.yml
+ release_date: '2024-09-17'
diff --git a/galaxy.yml b/galaxy.yml
index db1e081..645c20f 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -8,7 +8,7 @@ namespace: dynatrace
name: event_driven_ansible
# The version of the collection. Must be compatible with semantic versioning
-version: 1.2.1
+version: 1.2.2
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md