[Logs UI] Support inline log views in http routes #151489
Labels
Feature:Logs UI
Logs UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
📓 Summary
Currently the HTTP routes used by the browser to fetch log data require a
sourceId
parameter which is used to look up theLogView
for the request. In order to allow for querying log data based on inline log views, the HTTP routes must be able to also accept full log view definitions as a parameter so step of loading it from a saved object can be skipped.✔️ Acceptance criteria
infra
plugin (except for the log view routes themselves), that take asourceId
parameter instead take alogView
parameter as described below.logView
parameter can contain either...kibana/x-pack/plugins/infra/common/log_views/types.ts
Lines 106 to 111 in e5895c3
{ type: 'inline-log-view', id: string, attributes: logViewAttributesRT }
log-view-reference
like before with thesourceId
by loading and resolving the log view.inline-log-view
by resolving the given attributes withLogViewClient.resolveLogView()
directly.💡 Implementation hints
log-view-reference
type is already defined inkibana/x-pack/plugins/infra/common/log_views/types.ts
Lines 106 to 111 in e5895c3
inline-log-view
type.The text was updated successfully, but these errors were encountered: