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

[Infrastructure UI] Create metric explorer views client service #155112

Closed
Tracked by #152617
tonyghiani opened this issue Apr 18, 2023 · 1 comment · Fixed by #155878
Closed
Tracked by #152617

[Infrastructure UI] Create metric explorer views client service #155112

tonyghiani opened this issue Apr 18, 2023 · 1 comment · Fixed by #155878
Assignees
Labels
Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@tonyghiani
Copy link
Contributor

tonyghiani commented Apr 18, 2023

📓 Summary

Part of #152617

Similarly to the LogView service created on the client, we want to create a client service to access the metrics explorer view HTTP routes and resolve the metrics explorer view objects.

The rest of the client-side infra plugin (e.g. the React hierarchy) as well as other plugins should use it to access metrics explorer views. It should be available via the metricsExplorerViews.client property on the infra plugin start contract and injected into the infra plugins KibanaContextForPlugin.

✔️ Acceptance criteria

  • Should initiate a MetricsExplorerViewsService in the infra plugin.
  • Should create a MetricsExplorerViewsClient instance in the infra plugin start contract.
  • Should expose all the available CRUD operations into the MetricsExplorerViewsClient.
  • Should inject the created client into the KibanaContextForPlugin
@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 18, 2023
@tonyghiani tonyghiani added Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services and removed needs-team Issues missing a team label labels Apr 18, 2023
@tonyghiani tonyghiani self-assigned this Apr 18, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

tonyghiani added a commit that referenced this issue Apr 27, 2023
…lorerViewsClient (#155878)

## 📓 Summary

Depends on #154900
Closes #155112  

This PR implements the `InventoryViewsService` and
`InventoryViewsClient`, injecting an instance of the client in the
KibanaContextForPlugin and exposing so a set of utilities to
retrieve/update inventory views:
- `findMetricsExplorerViews`
- `getMetricsExplorerView`
- `createMetricsExplorerView`
- `updateMetricsExplorerView`
- `deleteMetricsExplorerView`

## 👣 Next steps
- Implement #154725 to consume the service

---------

Co-authored-by: Marco Antonio Ghiani <[email protected]>
Co-authored-by: Carlos Crespo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
2 participants