Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/pkg/api/handleAck.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ func (ack *AckT) handleUpgrade(ctx context.Context, zlog zerolog.Logger, agent *
doc := bulk.UpdateFields{
dl.FieldUpgradeStartedAt: nil,
dl.FieldUpgradedAt: now,
dl.FieldUpgradeStatus: "completed",
}

body, err := doc.Marshal()
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/dl/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const (
FieldUnenrolledAt = "unenrolled_at"
FieldUpgradedAt = "upgraded_at"
FieldUpgradeStartedAt = "upgrade_started_at"
FieldUpgradeStatus = "upgrade_status"

FieldDecodedSha256 = "decoded_sha256"
FieldIdentifier = "identifier"
Expand Down
5 changes: 4 additions & 1 deletion internal/pkg/model/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion model/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@
"type": "string",
"format": "date-time"
},
"upgrade_status": {
"description": "Upgrade status",
"type": "string"
},
"access_api_key_id": {
"description": "ID of the API key the Elastic Agent must used to contact Fleet Server",
"type": "string"
Expand Down Expand Up @@ -509,7 +513,7 @@
"format": "date-time"
},
"last_checkin_status": {
"description": "Lst checkin status",
"description": "Last checkin status",
"type": "string"
},
"default_api_key_id": {
Expand Down