elastic / kibana

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

[RAM] - Fetch alerts response inconsistency #140819

Open jcger opened 2 years ago

jcger commented 2 years ago

To make our life easier we'd like to have the fetch alerts api to be consistent and return all of their values the same way. Right now it returns an array for almost every field loaded, e.g _id and _index are not (see screenshot)

190421412-56022af3-33bd-4d39-b4ae-3a74124e2323

A possible solution could be returning every field as an array

190421938-f9013c26-9a2b-4061-ac9b-b60f96f3673b

This would allow us to not having to branch our code checking the type of the value in the alerts table cell render callback.

elasticmachine commented 2 years ago

Pinging @elastic/response-ops (Team:ResponseOps)

XavierM commented 1 year ago

As of today, I do not think we really need to do anything here to go away from what elastic search do. However, we can always re-evaluate in the future.

jcger commented 1 year ago

siem seems to need it, reopenin