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

Convert severity fields in Thresholds into strings #13

Open
RashmicaG opened this issue Aug 6, 2021 · 0 comments
Open

Convert severity fields in Thresholds into strings #13

RashmicaG opened this issue Aug 6, 2021 · 0 comments

Comments

@RashmicaG
Copy link
Contributor

At the moment severity fields are ints 0-4 which correspond one to one with a threshold type:

Threshold Severity
Warning 0
Critical 1
PerformanceLoss 2
SoftShutdown 3
HardShutdown 4

Change these to a string enum so it's clear which threshold is being used in config files. This will require updating the schema here, dbus-sensors and phosphor-virtual-sensors.

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

No branches or pull requests

1 participant