Skip to content

Commit

Permalink
Remove events from agent checkin body. (#1842)
Browse files Browse the repository at this point in the history
Remove the events attribute from the agent checkin body. Note that
removal of the attribute will not stop the server from issuing a 400 if
the response body is too long. The removal is so that the checkin code
on the fleet-server and agent remain comparable.

Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit 8a22669)

# Conflicts:
#	CHANGELOG.next.asciidoc
  • Loading branch information
michel-laterman authored and mergify[bot] committed Sep 9, 2022
1 parent 6dd655f commit 0fe130a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Return a better error on enrolling and the Elasticsearch version is incompatible. {pull}1211[1211]
- Give a grace period when starting the unenroll monitor. {issue}1500[1500]
- Fixes a race condition between the unenroller goroutine and the main goroutine for the coordinator monitor. {issues}1738[1738]
- Remove events from agent checkin body. {issue}1774[1774]
==== New Features

Expand All @@ -12,3 +13,7 @@
- Add start_time and minimum_execution_duration to actions to allow fleet-server to schedule agent actions. {pull}1381[1381]
- Fleet Server now allows setting global labels on APM instrumentation. {pull}1649[1649]
- Fleet Server now allows setting transaction sample rate on APM instrumentation {pull}1681[1681]
<<<<<<< HEAD
=======
- Log redacted config when config updates. {issue}1626[1626] {pull}1668[1668]
>>>>>>> 8a22669 (Remove events from agent checkin body. (#1842))
1 change: 0 additions & 1 deletion internal/pkg/api/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ type EnrollResponse struct {
type CheckinRequest struct {
Status string `json:"status"`
AckToken string `json:"ack_token,omitempty"`
Events []Event `json:"events"`
LocalMeta json.RawMessage `json:"local_metadata"`
}

Expand Down

0 comments on commit 0fe130a

Please sign in to comment.