Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new GraphQL query to export and return protocol templates (field format) #521

Open
syncpark opened this issue Aug 30, 2023 · 0 comments

Comments

@syncpark
Copy link
Contributor

syncpark commented Aug 30, 2023

Issue

in Web UI

Currently, in Web UI, a GraphQL query for each protocol must be pre-written to retrieve the relevant raw events from Giganto.
This is because even if a similar query is used, the field format is different for each protocols.
Therefore, there is a problem that UI modification work is required every time protocols are added or changed.

in REconverge

REconverge receives raw events from Giganto in CSV format, the field format must be defined manually in the training configuration.
Many mistakes occurs in this work.

And there is Template to define field format1 in Web UI, but not yet used.

Proposal

The problems pointed out above can be solved by creating GraphQL query to return field format.

  • request param: specify protocol name or null(all)
  • result: Vector of (field format)

Required functions:

  • export templates to file
  • return templates as GraphQL response

Benefit

Web UI can query dynamically on the run with the returned field format.
The work required to modify the UI each time whenever protocols are added or modified is greatly reduced.

In REconverge, engineer does not require to write field format for each protocols to read raw events from Giganto.
Errors caused by manual work are also reduced.

@syncpark syncpark changed the title Add new GraphQL query or QUIC API to return database(protocol) schema Add new GraphQL query to export and return protocol templates (field format) Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant