parseablehq / console

Frontend Client for Parseable. Parseable is a cloud native log storage and management for Kubernetes, containerised workloads
https://parseable.com
GNU Affero General Public License v3.0
22 stars 33 forks source link

Query api #289

Closed Koustavd18 closed 1 month ago

Koustavd18 commented 1 month ago

Update: Use of enhanced query API

using enhanced query api which will fetch the table headers along with data

balaji-jr commented 1 month ago

@Koustavd18 Also, we need a change to fetch the schema whenever we fetch logs.

balaji-jr commented 1 month ago

@Koustavd18 To determine the exact type definition for LogStreamQueryWithFields, Try different scenarios (no-data, diff time range, non-existing streams, etc) and send multiple queries, and examine the results. This change is critical since a normal response without any params is an array but with fields=true it is an object. This object may or may not contain fields and data keys.

Stating the above, it's better to have a common query function, that will always return an object {fields: string[], records: Log[] }. Just to prevent when we expect an array where its going to be an object response.

balaji-jr commented 1 month ago

This will be addressed in a separate pr.