Skip to content

Commit

Permalink
fix: change es message structure
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 5, 2024
1 parent 552b688 commit d8f923c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/describer/resource_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (s *ResourceSender) ResourceHandler() {
return
}

s.resourceIDs = append(s.resourceIDs, resource.ID)
s.resourceIDs = append(s.resourceIDs, resource.ResourceID)
s.sendBuffer = append(s.sendBuffer, resource)

if len(s.sendBuffer) > MaxBufferSize {
Expand Down Expand Up @@ -169,7 +169,7 @@ func (s *ResourceSender) flushBuffer(force bool) {
kafkaResource.EsIndex = idx

lookupResource := es.LookupResource{
ProviderID: resource.ProviderID,
PlatformID: resource.PlatformID,
ResourceID: resource.ResourceID,
ResourceName: resource.ResourceName,
IntegrationType: configs.IntegrationName,
Expand Down

0 comments on commit d8f923c

Please sign in to comment.