Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Display outputs in agent list table and agent details #195801

Merged
merged 29 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
cdb906e
[Fleet] Display outputs in agent list table and agent details
criamico Oct 10, 2024
d88bdfe
Create component to render outputs
criamico Oct 10, 2024
de08fda
Merge branch 'main' into 192339_show_outputs_in_agents_table
elasticmachine Oct 11, 2024
2064407
Implement text truncate and add badge with popover
criamico Oct 11, 2024
749db59
small fixes and unit tests
criamico Oct 11, 2024
5a22b25
Add outputs info in agent details section
criamico Oct 11, 2024
b6e8a5e
Merge branch 'main' into 192339_show_outputs_in_agents_table
elasticmachine Oct 11, 2024
de53fed
Merge branch 'main' into 192339_show_outputs_in_agents_table
elasticmachine Oct 14, 2024
ea3b503
Fix copy
criamico Oct 14, 2024
ce5c37b
Add basic functionality for new endpoint - get outputs by agent polic…
criamico Oct 14, 2024
36a17a3
Move logic to AgentPolicyService
criamico Oct 15, 2024
4e0a62b
Use new endpoint in UI
criamico Oct 15, 2024
41eedb0
Merge branch 'main' into 192339_show_outputs_in_agents_table
elasticmachine Oct 16, 2024
9ee5c29
Add new endpoint to retrieve outputs for all policies
criamico Oct 16, 2024
d80de5f
Improvements to new endpoint
criamico Oct 16, 2024
a2519c3
limit agent policies query to the ones displayed
criamico Oct 16, 2024
bdc585f
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Oct 16, 2024
cdb247a
[CI] Auto-commit changed files from 'make api-docs && make api-docs-s…
kibanamachine Oct 16, 2024
77a03a8
Fix linter and one unit test
criamico Oct 17, 2024
77e16d2
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Oct 17, 2024
d99f2cd
[CI] Auto-commit changed files from 'make api-docs && make api-docs-s…
kibanamachine Oct 17, 2024
42dc2a6
Use post instead of get
criamico Oct 17, 2024
4927926
fix failing test
criamico Oct 17, 2024
ef78686
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Oct 17, 2024
fc6f095
Merge branch 'main' into 192339_show_outputs_in_agents_table
elasticmachine Oct 21, 2024
a27aa64
Add concurrency to pMap
criamico Oct 21, 2024
ad9bdf9
[CI] Auto-commit changed files from 'make api-docs && make api-docs-s…
kibanamachine Oct 21, 2024
03e11f6
add integration tests
criamico Oct 22, 2024
34d780d
Merge branch 'main' into 192339_show_outputs_in_agents_table
elasticmachine Oct 22, 2024
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
343 changes: 343 additions & 0 deletions oas_docs/bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -9764,6 +9764,191 @@
]
}
},
"/api/fleet/agent_policies/outputs": {
"post": {
"description": "Get list of outputs associated with agent policies",
"operationId": "%2Fapi%2Ffleet%2Fagent_policies%2Foutputs#0",
"parameters": [
{
"description": "The version of the API to use",
"in": "header",
"name": "elastic-api-version",
"schema": {
"default": "2023-10-31",
"enum": [
"2023-10-31"
],
"type": "string"
}
},
{
"description": "A required header to protect against CSRF attacks",
"in": "header",
"name": "kbn-xsrf",
"required": true,
"schema": {
"example": "true",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"ids": {
"description": "list of package policy ids",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"ids"
],
"type": "object"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"agentPolicyId": {
"type": "string"
},
"data": {
"additionalProperties": false,
"properties": {
"integrations": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"integrationPolicyName": {
"type": "string"
},
"name": {
"type": "string"
},
"pkgName": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"output": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"output"
],
"type": "object"
},
"monitoring": {
"additionalProperties": false,
"properties": {
"output": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"output"
],
"type": "object"
}
},
"required": [
"monitoring",
"data"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
}
}
}
},
"400": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"description": "Generic Error",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"type": "number"
}
},
"required": [
"message"
],
"type": "object"
}
}
}
}
},
"summary": "",
"tags": [
"Elastic Agent policies"
]
}
},
"/api/fleet/agent_policies/{agentPolicyId}": {
"get": {
"description": "Get an agent policy by ID",
Expand Down Expand Up @@ -12926,6 +13111,164 @@
]
}
},
"/api/fleet/agent_policies/{agentPolicyId}/outputs": {
"get": {
"description": "Get list of outputs associated with agent policy by policy id",
"operationId": "%2Fapi%2Ffleet%2Fagent_policies%2F%7BagentPolicyId%7D%2Foutputs#0",
"parameters": [
{
"description": "The version of the API to use",
"in": "header",
"name": "elastic-api-version",
"schema": {
"default": "2023-10-31",
"enum": [
"2023-10-31"
],
"type": "string"
}
},
{
"in": "path",
"name": "agentPolicyId",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"item": {
"additionalProperties": false,
"properties": {
"agentPolicyId": {
"type": "string"
},
"data": {
"additionalProperties": false,
"properties": {
"integrations": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"integrationPolicyName": {
"type": "string"
},
"name": {
"type": "string"
},
"pkgName": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"output": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"output"
],
"type": "object"
},
"monitoring": {
"additionalProperties": false,
"properties": {
"output": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"output"
],
"type": "object"
}
},
"required": [
"monitoring",
"data"
],
"type": "object"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
},
"400": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"description": "Generic Error",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"type": "number"
}
},
"required": [
"message"
],
"type": "object"
}
}
}
}
},
"summary": "",
"tags": [
"Elastic Agent policies"
]
}
},
"/api/fleet/agent_status": {
"get": {
"description": "Get agent status summary",
Expand Down
Loading