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

Specify color thresholds #53

Closed
agneevX opened this issue Apr 16, 2021 · 3 comments · Fixed by #59
Closed

Specify color thresholds #53

agneevX opened this issue Apr 16, 2021 · 3 comments · Fixed by #59
Labels
enhancement New feature or request

Comments

@agneevX
Copy link
Contributor

agneevX commented Apr 16, 2021

Can you please add support for specifying custom thresholds, that overwrite the default set levels? Thanks!

@dylandoamaral
Copy link
Owner

It is the role of the severity option. You want something more accurate that determine Ok/None/Ko independantly?

@agneevX
Copy link
Contributor Author

agneevX commented Apr 16, 2021

With that option, I'm able to define up to three colors only.

E.g. if uptime is between 98% and 100%, color X... between 96% to 98% color, color Y... below 96%, color Z.

With mini-graph-card, that would translate to:

color_thresholds:
  - value: 94
    color: '#FF0000'
  - value: 96
    color: '#FFA500'
  - value: 98
    color: '#04E700'

@dylandoamaral dylandoamaral added the enhancement New feature or request label Apr 16, 2021
This was referenced Apr 17, 2021
@agneevX
Copy link
Contributor Author

agneevX commented Apr 18, 2021

Dang! Almost made it to a release 😅

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

Successfully merging a pull request may close this issue.

2 participants