From 56386367aca314aaf1d88de3d9005a6d8c3e6a5c Mon Sep 17 00:00:00 2001 From: Reinhard Pilz Date: Thu, 3 Aug 2023 14:08:39 +0200 Subject: [PATCH] Updated dependencies for automation resources --- dynatrace/export/resource_descriptor.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dynatrace/export/resource_descriptor.go b/dynatrace/export/resource_descriptor.go index 9d80aeb92..36700c4d9 100644 --- a/dynatrace/export/resource_descriptor.go +++ b/dynatrace/export/resource_descriptor.go @@ -1015,9 +1015,17 @@ var AllResources = map[ResourceType]ResourceDescriptor{ kubernetesmonitoring.Service, Coalesce(Dependencies.K8sCluster), ), - ResourceTypes.AutomationWorkflow: NewResourceDescriptor(workflows.Service), + ResourceTypes.AutomationWorkflow: NewResourceDescriptor( + workflows.Service, + Dependencies.ID(ResourceTypes.AutomationSchedulingRule), + Dependencies.ID(ResourceTypes.AutomationBusinessCalendar), + ), ResourceTypes.AutomationBusinessCalendar: NewResourceDescriptor(business_calendars.Service), - ResourceTypes.AutomationSchedulingRule: NewResourceDescriptor(scheduling_rules.Service), + ResourceTypes.AutomationSchedulingRule: NewResourceDescriptor( + scheduling_rules.Service, + Dependencies.ID(ResourceTypes.AutomationSchedulingRule), + Dependencies.ID(ResourceTypes.AutomationBusinessCalendar), + ), ResourceTypes.CustomTags: NewResourceDescriptor( customtags.Service, Dependencies.ID(ResourceTypes.HTTPMonitor),