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

allow option to present context in reading output table #232

Open
edaniszewski opened this issue May 20, 2020 · 0 comments
Open

allow option to present context in reading output table #232

edaniszewski opened this issue May 20, 2020 · 0 comments
Labels

Comments

@edaniszewski
Copy link
Contributor

when reading from a device which may have multiple readings, e.g.

$ ./synse plugin read 17074ac0-f08f-5c6a-96ed-209b1d16a067 
ID                                     VALUE                 UNIT   TYPE          TIMESTAMP
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   false                        bool          2020-05-20T14:58:58Z
17074ac0-f08f-5c6a-96ed-209b1d16a067   true                         bool          2020-05-20T14:58:58Z

it isn't possible to tell which reading is what in the table view. outputting to json or yaml gives this information, but it isn't as compact as the table view.

It would be nice to, either as a default or enabled by a flag, allow an additional "CONTEXT" column which would hold the context values for the reading.

It may take a little playing around to get this right and output in a useful way, since a reading may have many context fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant