Skip to content

Commit 5b5468a

Browse files
Add new attributes to schemas
1 parent 0d00710 commit 5b5468a

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
@@ -566,7 +566,12 @@
566566
"format": "raw"
567567
},
568568
"policy_id": {
569-
"description": "The policy ID for the Elastic Agent",
569+
"description": "The policy ID that the Elastic Agent should run.",
570+
"type": "string",
571+
"format": "uuid"
572+
},
573+
"agent_policy_id": {
574+
"description": "The policy ID that the Elastic Agent is currently running.",
570575
"type": "string",
571576
"format": "uuid"
572577
},

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)