Skip to content

Commit 23be42a

Browse files
authored
updating upgrade_status: completed (#1833)
* updating upgrade_status: completed * updated schema.json and regenerated schema.go * updated license headers
1 parent 1892264 commit 23be42a

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

internal/pkg/api/handleAck.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ func (ack *AckT) handleUpgrade(ctx context.Context, zlog zerolog.Logger, agent *
429429
doc := bulk.UpdateFields{
430430
dl.FieldUpgradeStartedAt: nil,
431431
dl.FieldUpgradedAt: now,
432+
dl.FieldUpgradeStatus: "completed",
432433
}
433434

434435
body, err := doc.Marshal()

internal/pkg/dl/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const (
4949
FieldUnenrolledAt = "unenrolled_at"
5050
FieldUpgradedAt = "upgraded_at"
5151
FieldUpgradeStartedAt = "upgrade_started_at"
52+
FieldUpgradeStatus = "upgrade_status"
5253

5354
FieldDecodedSha256 = "decoded_sha256"
5455
FieldIdentifier = "identifier"

internal/pkg/model/schema.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model/schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@
459459
"type": "string",
460460
"format": "date-time"
461461
},
462+
"upgrade_status": {
463+
"description": "Upgrade status",
464+
"type": "string"
465+
},
462466
"access_api_key_id": {
463467
"description": "ID of the API key the Elastic Agent must used to contact Fleet Server",
464468
"type": "string"
@@ -509,7 +513,7 @@
509513
"format": "date-time"
510514
},
511515
"last_checkin_status": {
512-
"description": "Lst checkin status",
516+
"description": "Last checkin status",
513517
"type": "string"
514518
},
515519
"default_api_key_id": {

0 commit comments

Comments
 (0)