-
Notifications
You must be signed in to change notification settings - Fork 4
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
Implement "import/export from/to JSON/CSV" functionality #25
Comments
It would be nice to have just a little filtering. Two obvious ones jump out to me. First is path filtering, something along the lines of And second, device filtering, so |
hi @jamesmunns I'd like to tackle this issue if you still didn't plan to do it yet. My initial approach is introducing new sub-command, lets say The new sub-command could look like this: // New subcommands for poststation-cli
enum ExportCommand {
Logs {
device: String,
path_filter: Option<String>,
format: ExportFormat,
output: PathBuf,
},
Schemas {
device: String,
path_filter: Option<String>,
format: ExportFormat,
output: PathBuf,
},
Topics {
device: String,
direction: TopicDirection,
path_filter: Option<String>,
format: ExportFormat,
output: PathBuf,
}
}
enum ExportFormat {
Json,
Csv,
Postcard,
}
enum TopicDirection {
In,
Out,
Both,
} The Export flow will be:
but I cannot find the details of What do you think about my approach? |
Hey @thaodt, you're welcome to take a try at this, I think I'll need to make changes on the Poststation side to fully support exporting historical topic and endpoint data, as there is no endpoint for that. Schemas and logs could be exported currently. Yes, Feel free to implement partially now, or I'll add a comment here when I add Poststation endpoints for exporting. |
We don't have a great way to actually dump history, including:
We should have an easy way to import and export these. Potentially always including schemas to allow for data decoding.
It might also be nice to have a compact postcard file format version of this as well.
The text was updated successfully, but these errors were encountered: