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

[ECO][Inventory] Move APIs to entity_manager plugin #199776

Closed
3 tasks
cauemarcondes opened this issue Nov 12, 2024 · 2 comments
Closed
3 tasks

[ECO][Inventory] Move APIs to entity_manager plugin #199776

cauemarcondes opened this issue Nov 12, 2024 · 2 comments
Labels
Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@cauemarcondes
Copy link
Contributor

cauemarcondes commented Nov 12, 2024

As part of our strategy to move away from materialized entities, we plan to expose APIs directly from the entity_manager plugin, rather than allowing consumers to query entities manually.

In the Inventory plugin, we currently query the entities-*-latest index directly, using ESQL, to power our UIs. We aim to start consuming the new APIs provided by the entity_manager, so that the UI remains agnostic to the underlying entity creation process.

These are the current inventory APIs we will start moving to the entity_manager plugin:

  • Endpoint: GET /internal/inventory/entities/types
    Description: Fetch a list of available entity types.
    Return type:
z.array(
  z.object({
    type: z.string(),
    count: z.number(),
  })
)
  • Endpoint: GET /internal/inventory/entities
    Description: Fetch all entities from a given entity type (group by)
    Return type:
z.array(entityLatestSchema)
  • Remove the Unified entities page.

  • We WILL NOT move the grouping API GET /internal/inventory/entities/group_by/{field}, we can use the entity types API for now since the UI only allows to group by entity type.

  • We WILL NOT move the other APIs.

  • We WILL NOT change how we're create data views to show the suggestion fields on the KQL bar.

  • We WILL NOT move the logic to fetch alerts.

  • The Inventory APIs will need to "convert" the entities received from the new services to the UI schema following what @crespocarlos created here.

@cauemarcondes cauemarcondes added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Nov 12, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@cauemarcondes
Copy link
Contributor Author

Closing this as the EEM team is moving fast and will have the services ready sooner than we expected, so no reason to move our stuff to their side.

@smith smith closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

No branches or pull requests

3 participants