Skip to content

Commit fff695b

Browse files
Fix: Exported Request Attributes were missing Process Group ID within Scope
1 parent f3a3219 commit fff695b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

dynatrace/api/v1/config/requestattributes/service.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ func Service(credentials *settings.Credentials) settings.CRUDService[*requestatt
3434
return settings.NewCRUDService(
3535
credentials,
3636
SchemaID,
37-
settings.DefaultServiceOptions[*requestattributes.RequestAttribute](BasePath).WithMutex(mu.Lock, mu.Unlock),
37+
&settings.ServiceOptions[*requestattributes.RequestAttribute]{
38+
Get: settings.Path(BasePath + "/%s?includeProcessGroupReferences=true"),
39+
List: settings.Path(BasePath),
40+
Lock: mu.Lock,
41+
Unlock: mu.Unlock,
42+
},
3843
)
3944
}

dynatrace/export/resource_descriptor.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,11 @@ var AllResources = map[ResourceType]ResourceDescriptor{
388388
ResourceTypes.QueueManager: NewResourceDescriptor(queuemanagers.Service),
389389
ResourceTypes.RequestAttribute: NewResourceDescriptor(
390390
requestattributes.Service,
391-
Dependencies.Host,
392-
Dependencies.HostGroup,
393-
Dependencies.ProcessGroup,
394-
Dependencies.ProcessGroupInstance,
395-
Dependencies.Service,
391+
Coalesce(Dependencies.Host),
392+
Coalesce(Dependencies.HostGroup),
393+
Coalesce(Dependencies.ProcessGroup),
394+
Coalesce(Dependencies.ProcessGroupInstance),
395+
Coalesce(Dependencies.Service),
396396
),
397397
ResourceTypes.RequestNaming: NewResourceDescriptor(
398398
requestnaming.Service,

0 commit comments

Comments
 (0)