Skip to content

Convert severity fields in Thresholds into strings #13

Description

@RashmicaG

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions