Skip to content

Commit cabafee

Browse files
Add new attributes to schemas
1 parent 898abd5 commit cabafee

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

internal/pkg/api/openapi.gen.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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/openapi.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,14 @@ components:
422422
format: duration
423423
upgrade_details:
424424
$ref: "#/components/schemas/upgrade_details"
425+
agent_policy_id:
426+
description: |
427+
The ID of the policy that the agent is currently running.
428+
type: string
429+
policy_revision_idx:
430+
description: |
431+
The revision of the policy that the agent is currently running.
432+
type: integer
425433
actionSignature:
426434
description: Optional action signing data.
427435
type: object

model/schema.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,12 @@
579579
"format": "raw"
580580
},
581581
"policy_id": {
582-
"description": "The policy ID for the Elastic Agent",
582+
"description": "The policy ID that the Elastic Agent should run.",
583+
"type": "string",
584+
"format": "uuid"
585+
},
586+
"agent_policy_id": {
587+
"description": "The policy ID that the Elastic Agent is currently running.",
583588
"type": "string",
584589
"format": "uuid"
585590
},

pkg/api/types.gen.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)