Skip to content

[Infra][Hosts UI] Schema selection #226335

@crespocarlos

Description

@crespocarlos

Summary

Following up on the work from #226332, we need to add a component to the page to allow users to select the schema.

Suggestion: A simple select below the unified search bar called "Schema"

Options: OpenTelemetry and Elastic System Integration

Designs

Image

Acceptance criteria

  • The toggle should always appear.
  • The schema selector should show how many available schemas are available based on the current query
  • When loading the app, the schema selector should default to ECS (if only ECS available), OTel (if only OTel available) or OTel (when both are available)
  • Once a schema is selected, it should persist for further queries in the current session
  • When opening the schema selector, it should only show available schemas for the current query
  • If the user changes the query and the currently selected schema has no hosts, we should show the selected schema is invalid
  • When a given schema is selected, it should only show Hosts which have data for a given schema (i.e. data will be filtered by something like event.dataset : "otel.generic" etc for OTel

TBC w @MiriamAparicio + @crespocarlos

  • If the endpoint from #226332 returns a single schema, it should automatically be persisted in a context

Content

Schema selector tooltip copy
Select which data collection schema your entities are observed with.

See documentation for more information.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions