Dynatrace / dynatrace-automation-tools

Apache License 2.0
12 stars 2 forks source link

Deploy event - validate if entity exist #51

Closed drqc closed 1 year ago

drqc commented 1 year ago

Run validation to check if entity exists before sending the deployment event and throw a warning if there expression doesn't match anything. Also add a wait time before executing the query, to allow dynatrace to detect the new process (should be configurable)

drqc commented 1 year ago

solved by using version detection strategies https://docs.dynatrace.com/docs/platform-modules/cloud-automation/release-monitoring/version-detection-strategies and the corresponding tags as the base to filter the target for the deployment event. Actually verifying that the entity exists is complex because of the eventual consistency approach of the events