Skip to content

Commit

Permalink
skip realtime payloads in fake intake aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
wiyu committed Jun 28, 2024
1 parent 385ce66 commit 2a81deb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fakeintake/aggregator/containerAggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func ParseContainerPayload(payload api.Payload) ([]*ContainerPayload, error) {
switch m := msg.Body.(type) {
case *agentmodel.CollectorContainer:
return []*ContainerPayload{{CollectorContainer: *m, collectedTime: payload.Timestamp}}, nil
case *agentmodel.CollectorContainerRealTime
// skip real-time payloads
return nil, nil
default:
return nil, fmt.Errorf("unexpected type %s", msg.Header.Type)
}
Expand Down

0 comments on commit 2a81deb

Please sign in to comment.