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

Datapoints - is it regular or virtual data point? #178

Open
gabrieltholsgard opened this issue Nov 29, 2013 · 1 comment
Open

Datapoints - is it regular or virtual data point? #178

gabrieltholsgard opened this issue Nov 29, 2013 · 1 comment
Labels

Comments

@gabrieltholsgard
Copy link
Contributor

Now it is not possible to see from a JSON data point whether it is a data point for a stream or a virtual stream.
Proposed solution is to add one more field in the mapping 'vsdatapoint' such that minimal changes has to be done across the system.
Added field could be 'vstream' and the field should always be present and always set to true for virtual streams, as such data points can mainly be handled the same and were distinguishing is needed a check for this would either be 'undefine' for streams or 'true' for virtual streams.

@volt42
Copy link
Contributor

volt42 commented Dec 10, 2013

If virtual points are pushed in another way in the API than regular points, make sure the value is a float by using api_help:any_to_float().

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

2 participants