Skip to content

Commit

Permalink
updating upgrade_status: completed (#1833)
Browse files Browse the repository at this point in the history
* updating upgrade_status: completed

* updated schema.json and regenerated schema.go

* updated license headers
  • Loading branch information
juliaElastic authored Sep 8, 2022
1 parent 1892264 commit 23be42a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
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

0 comments on commit 23be42a

Please sign in to comment.