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

% operator #7553

Closed
kfox1111 opened this issue Nov 1, 2016 · 1 comment
Closed

% operator #7553

kfox1111 opened this issue Nov 1, 2016 · 1 comment

Comments

@kfox1111
Copy link

kfox1111 commented Nov 1, 2016

Proposal: Would like the % operator

Current behavior: doesn't exist

Desired behavior: % works

Use case:
I have a data set that has a state value of 0: off, 1: heat, 2: cool.
I'd like to convert this value to be cool < off < heat to make the singlestat grafana plugin able to display it nicely. the % operator could be used to reformat the data nicely in this case.

@jwilder
Copy link
Contributor

jwilder commented Nov 2, 2016

Can you provide a sample syntax of how this would work? Is the % operator the same as a case statement in SQL?

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

No branches or pull requests

3 participants