Skip to content

display event in table format #1642

Closed
Closed
@sehz

Description

Given some arbitrary records such as:

/hfp/v2/journey/ongoing/vp/bus/0012/01912/1018N/1/Munkkivuori/23:43/1304201/4/60;24/28/07/67,b'{"VP":{"desi":"18N","dir":"1","oper":12,"veh":1912,"tst":"2021-08-12T21:19:01.449Z","tsi":1628803141,"spd":4.17,"hdg":269,"lat":60.206389,"long":24.877886,"acc":-0.36,"dl":-59,"odo":11853,"drst":0,"oday":"2021-08-12","jrn":21,"line":48,"start":"23:43","loc":"GPS","stop":1304201,"route":"1018N","occu":0}}'

CLI should be able to output in following format after consume

$ fluvio consume bus_events --output table --table <TBD> 

time  line     lat          long 
----  ------   ----         -----
8-12  48       60.206389    24.877886
8-12  49.      70.11111111     33.2211111

If there are more events than display then data should scroll down but not header.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions