mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
## 📓 Summary Part of #152617 Closes #155111 This PR implements the CRUD endpoints for the metrics explorer views. Following the approach used for the InventoryView service, it exposes a client that abstracts all the logic concerned to the `metrics-explorer-view` saved objects. It also follows the guideline provided for [Versioning interfaces](https://docs.elastic.dev/kibana-dev-docs/versioning-interfaces) and [Versioning HTTP APIs](https://docs.elastic.dev/kibana-dev-docs/versioning-http-apis), preparing for the serverless. ## 🤓 Tips for the reviewer You can open the Kibana dev tools and play with the following snippet to test the create APIs, or you can perform the same requests with your preferred client: ``` // Get all GET kbn:/api/infra/metrics_explorer_views // Create one POST kbn:/api/infra/metrics_explorer_views { "attributes": { "name": "My view" } } // Get one GET kbn:/api/infra/metrics_explorer_views/<switch-with-id> // Update one PUT kbn:/api/infra/metrics_explorer_views/<switch-with-id> { "attributes": { "name": "My view 2" } } // Delete one DELETE kbn:/api/infra/metrics_explorer_views/<switch-with-id> ``` --------- Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
infra | ||
infra_ml | ||
inventory_metadata | ||
inventory_views | ||
log_alerts | ||
log_analysis | ||
log_entries | ||
log_views | ||
metadata | ||
metrics_api | ||
metrics_explorer | ||
metrics_explorer_views | ||
metrics_sources | ||
node_details | ||
overview | ||
process_list | ||
snapshot | ||
ip_to_hostname.ts |