Is there a way to organize the data based on the server name, which is identified by the object key server
?
The code snippet below illustrates the structure of the data:
rowData = [
{
server: "Server 1",
ping: "10 ms",
dl: "50Mbit/s",
ul: "50Mbit/s",
ispcon: true,
dateStart: "2019-10-12 09:00:00",
datteEnd: "2019-10-12 09:05:000"
},
// more data entries for Server 1 and Server 2...
];
The desired output format should be as shown here:
[
{
server: "Server 1",
data: [
// individual data objects for Server 1...
]
},
{
server: "Server 2",
data: [
// individual data objects for Server 2...
]
}
]
The objective is to group the data according to their respective servers. For instance, all data related to "Server 1" should be grouped together.
To visualize this grouped data in ag-grid's master-detail display, you can refer to this link: https://stackblitz.com/edit/ag-grid-angular-hello-world-xabqct?file=src/app/app.component.ts
An example of the expected output format can be viewed here: https://i.sstatic.net/cYcRu.png
Thank you in advance!