elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.16k forks source link

[RCA] Using repository client for accessing investigation APIs on the alert details page #192818

Open maryam-saeidi opened 2 weeks ago

maryam-saeidi commented 2 weeks ago

Summary

The server route repository package also offers a client we can use to access investigation APIs. It is type-safe, and it gives us some out-of-the-box features, such as setting the version. Here is the related documentation:

https://github.com/elastic/kibana/blob/main/packages/kbn-server-route-repository/README.md

Example of usage: https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability_solution/observability/public/pages/alert_details/hooks/use_create_investigation.tsx#L35

Acceptance criteria

elasticmachine commented 2 weeks ago

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